{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/jkastell/Dropbox/Politics of Supreme Court Nominations/Chapter_Understanding_Yeas_and_Nays/PRSM_final_submission_and_replication_files/bass_cameron_kastellec_accountability_stata_log_file.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}23 Nov 2021, 09:25:24

{com}. do "/Users/jkastell/Dropbox/Politics of Supreme Court Nominations/Chapter_Understanding_Yeas_and_Nays/PRSM_final_submission_and_replication_files/bass_et_al_psrm_politics_of_accountabilty_STATA_analyses.do"
{txt}
{com}. clear
{txt}
{com}. set more off
{txt}
{com}. cd "~/Dropbox/Politics of Supreme Court Nominations/Chapter_Understanding_Yeas_and_Nays/PRSM_final_submission_and_replication_files"
{res}/Users/jkastell/Dropbox/Politics of Supreme Court Nominations/Chapter_Understanding_Yeas_and_Nays/PRSM_final_submission_and_replication_files
{txt}
{com}. 
. *This do file implements all the regression analyses reported in the paper and in the appendix.
.         *note that for the regressions with controls, the "local" command must be executed in the same code chunk, or the controls will not work properly
. 
. *****************************************************************
. *OLS models of voter recall as a function of political engagement.
. *****************************************************************
. *TABLE 2
. *THOMAS
. use "thomas_wide_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ female i.race_wbh  i.age_cat  dem_lean gop_lean
{txt}
{com}. eststo recall_thomas:  reg index_recall_correct_thomas  engage_factor_resc 

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,854
{txt}{hline 13}{c +}{hline 34}   F(1, 1852)      = {res}    37.68
{txt}       Model {c |} {res} 6.36634054         1  6.36634054   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 312.888379     1,852  .168946209   {txt}R-squared       ={res}    0.0199
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0194
{txt}       Total {c |} {res}  319.25472     1,853  .172290728   {txt}Root MSE        =   {res} .41103

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~s{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .1172296{col 32}{space 2} .0190971{col 43}{space 1}    6.14{col 52}{space 3}0.000{col 60}{space 4} .0797756{col 73}{space 3} .1546836
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .4565804{col 32}{space 2}  .009546{col 43}{space 1}   47.83{col 52}{space 3}0.000{col 60}{space 4} .4378584{col 73}{space 3} .4753023
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo recall_thomascont:  reg index_recall_correct_thomas  engage_factor_resc  `controls'

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,833
{txt}{hline 13}{c +}{hline 34}   F(12, 1820)     = {res}     4.98
{txt}       Model {c |} {res} 10.0238151        12  .835317927   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 305.396807     1,820  .167800443   {txt}R-squared       ={res}    0.0318
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0254
{txt}       Total {c |} {res} 315.420622     1,832  .172172829   {txt}Root MSE        =   {res} .40963

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~s{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .1269747{col 32}{space 2} .0234098{col 43}{space 1}    5.42{col 52}{space 3}0.000{col 60}{space 4} .0810618{col 73}{space 3} .1728875
{txt}{space 18} {c |}
{space 14}educ {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .0071282{col 32}{space 2} .0435004{col 43}{space 1}    0.16{col 52}{space 3}0.870{col 60}{space 4}-.0781877{col 73}{space 3} .0924441
{txt}{space 16}3  {c |}{col 20}{res}{space 2}-.0129908{col 32}{space 2} .0444124{col 43}{space 1}   -0.29{col 52}{space 3}0.770{col 60}{space 4}-.1000954{col 73}{space 3} .0741138
{txt}{space 16}4  {c |}{col 20}{res}{space 2}-.0273821{col 32}{space 2} .0468695{col 43}{space 1}   -0.58{col 52}{space 3}0.559{col 60}{space 4}-.1193057{col 73}{space 3} .0645415
{txt}{space 18} {c |}
{space 12}female {c |}{col 20}{res}{space 2} -.061342{col 32}{space 2} .0194015{col 43}{space 1}   -3.16{col 52}{space 3}0.002{col 60}{space 4}-.0993935{col 73}{space 3}-.0232905
{txt}{space 18} {c |}
{space 10}race_wbh {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .0536399{col 32}{space 2} .0438354{col 43}{space 1}    1.22{col 52}{space 3}0.221{col 60}{space 4}-.0323331{col 73}{space 3}  .139613
{txt}{space 16}3  {c |}{col 20}{res}{space 2}-.0336188{col 32}{space 2} .0522923{col 43}{space 1}   -0.64{col 52}{space 3}0.520{col 60}{space 4} -.136178{col 73}{space 3} .0689404
{txt}{space 18} {c |}
{space 11}age_cat {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .0026982{col 32}{space 2}  .026424{col 43}{space 1}    0.10{col 52}{space 3}0.919{col 60}{space 4}-.0491264{col 73}{space 3} .0545229
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .0170032{col 32}{space 2} .0285068{col 43}{space 1}    0.60{col 52}{space 3}0.551{col 60}{space 4}-.0389063{col 73}{space 3} .0729126
{txt}{space 16}4  {c |}{col 20}{res}{space 2} -.070702{col 32}{space 2} .0351624{col 43}{space 1}   -2.01{col 52}{space 3}0.045{col 60}{space 4} -.139665{col 73}{space 3} -.001739
{txt}{space 18} {c |}
{space 10}dem_lean {c |}{col 20}{res}{space 2} .0413294{col 32}{space 2} .0370912{col 43}{space 1}    1.11{col 52}{space 3}0.265{col 60}{space 4}-.0314164{col 73}{space 3} .1140753
{txt}{space 10}gop_lean {c |}{col 20}{res}{space 2} .0470143{col 32}{space 2} .0369271{col 43}{space 1}    1.27{col 52}{space 3}0.203{col 60}{space 4}-.0254097{col 73}{space 3} .1194383
{txt}{space 13}_cons {c |}{col 20}{res}{space 2}  .460671{col 32}{space 2} .0584442{col 43}{space 1}    7.88{col 52}{space 3}0.000{col 60}{space 4} .3460462{col 73}{space 3} .5752958
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. *SOTOMAYOR and KAGAN
. use "CCES_soto_kagan_wide.dta", clear
{txt}(Written by R)

{com}. local controls i.educ female i.race_wbh  i.age_cat  dem_lean gop_lean 
{txt}
{com}. 
. eststo recall_sk:   reg index_recall_correct_nominee engage_factor_resc

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     7,311
{txt}{hline 13}{c +}{hline 34}   F(1, 7309)      = {res}  2320.43
{txt}       Model {c |} {res} 374.319451         1  374.319451   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1179.04685     7,309  .161314386   {txt}R-squared       ={res}    0.2410
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2409
{txt}       Total {c |} {res}  1553.3663     7,310  .212498809   {txt}Root MSE        =   {res} .40164

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~e{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2}  .452608{col 32}{space 2} .0093959{col 43}{space 1}   48.17{col 52}{space 3}0.000{col 60}{space 4} .4341893{col 73}{space 3} .4710266
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .5487621{col 32}{space 2} .0046973{col 43}{space 1}  116.83{col 52}{space 3}0.000{col 60}{space 4} .5395541{col 73}{space 3} .5579702
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo recall_skcont:  reg index_recall_correct_nominee engage_factor_resc   `controls' 

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     7,311
{txt}{hline 13}{c +}{hline 34}   F(12, 7298)     = {res}   242.69
{txt}       Model {c |} {res} 443.070673        12  36.9225561   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1110.29562     7,298  .152136972   {txt}R-squared       ={res}    0.2852
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2841
{txt}       Total {c |} {res}  1553.3663     7,310  .212498809   {txt}Root MSE        =   {res} .39005

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~e{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .3900542{col 32}{space 2}  .011522{col 43}{space 1}   33.85{col 52}{space 3}0.000{col 60}{space 4} .3674679{col 73}{space 3} .4126406
{txt}{space 18} {c |}
{space 14}educ {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.0396206{col 32}{space 2} .0292683{col 43}{space 1}   -1.35{col 52}{space 3}0.176{col 60}{space 4}-.0969948{col 73}{space 3} .0177536
{txt}{space 16}3  {c |}{col 20}{res}{space 2}-.0218141{col 32}{space 2} .0293717{col 43}{space 1}   -0.74{col 52}{space 3}0.458{col 60}{space 4} -.079391{col 73}{space 3} .0357629
{txt}{space 16}4  {c |}{col 20}{res}{space 2} .0050984{col 32}{space 2} .0299884{col 43}{space 1}    0.17{col 52}{space 3}0.865{col 60}{space 4}-.0536876{col 73}{space 3} .0638844
{txt}{space 18} {c |}
{space 12}female {c |}{col 20}{res}{space 2}-.1406404{col 32}{space 2}   .00945{col 43}{space 1}  -14.88{col 52}{space 3}0.000{col 60}{space 4}-.1591651{col 73}{space 3}-.1221158
{txt}{space 18} {c |}
{space 10}race_wbh {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.0746012{col 32}{space 2} .0149363{col 43}{space 1}   -4.99{col 52}{space 3}0.000{col 60}{space 4}-.1038807{col 73}{space 3}-.0453218
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .0028628{col 32}{space 2} .0173865{col 43}{space 1}    0.16{col 52}{space 3}0.869{col 60}{space 4}-.0312197{col 73}{space 3} .0369453
{txt}{space 18} {c |}
{space 11}age_cat {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .0446442{col 32}{space 2} .0174636{col 43}{space 1}    2.56{col 52}{space 3}0.011{col 60}{space 4} .0104105{col 73}{space 3} .0788779
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .1134102{col 32}{space 2} .0162218{col 43}{space 1}    6.99{col 52}{space 3}0.000{col 60}{space 4} .0816108{col 73}{space 3} .1452095
{txt}{space 16}4  {c |}{col 20}{res}{space 2} .1451378{col 32}{space 2} .0183583{col 43}{space 1}    7.91{col 52}{space 3}0.000{col 60}{space 4} .1091502{col 73}{space 3} .1811255
{txt}{space 18} {c |}
{space 10}dem_lean {c |}{col 20}{res}{space 2}-.0869173{col 32}{space 2} .0159793{col 43}{space 1}   -5.44{col 52}{space 3}0.000{col 60}{space 4}-.1182414{col 73}{space 3}-.0555932
{txt}{space 10}gop_lean {c |}{col 20}{res}{space 2}-.0727352{col 32}{space 2} .0163477{col 43}{space 1}   -4.45{col 52}{space 3}0.000{col 60}{space 4}-.1047815{col 73}{space 3}-.0406889
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .6240504{col 32}{space 2} .0353536{col 43}{space 1}   17.65{col 52}{space 3}0.000{col 60}{space 4} .5547471{col 73}{space 3} .6933537
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. *Make Table 2 for paper  
. esttab recall_thomas recall_thomascont recall_sk recall_skcont using  "table_02.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(OLS models of voter recall as a function of political engagement\label{c -(}table2{c )-})
{res}{txt}(output written to {browse  `"table_02.tex"'})

{com}. 
. 
. *Table A-9 and A-10 separate results for Democrats and Republicans
.         *DEMOCRATS
. use "thomas_wide_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ female i.race_wbh  i.age_cat  dem_lean gop_lean
{txt}
{com}. eststo recall_thomas_dems:  reg index_recall_correct_thomas  engage_factor_resc if dem_lean==1

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       882
{txt}{hline 13}{c +}{hline 34}   F(1, 880)       = {res}    22.57
{txt}       Model {c |} {res} 3.67283427         1  3.67283427   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 143.217472       880  .162747127   {txt}R-squared       ={res}    0.0250
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0239
{txt}       Total {c |} {res} 146.890306       881  .166731335   {txt}Root MSE        =   {res} .40342

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~s{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .1287016{col 32}{space 2} .0270919{col 43}{space 1}    4.75{col 52}{space 3}0.000{col 60}{space 4} .0755293{col 73}{space 3} .1818739
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .4550803{col 32}{space 2} .0135855{col 43}{space 1}   33.50{col 52}{space 3}0.000{col 60}{space 4} .4284166{col 73}{space 3}  .481744
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo recall_thomascont_dems:  reg index_recall_correct_thomas  engage_factor_resc  `controls' if dem_lean==1
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

      Source {c |}       SS           df       MS      Number of obs   ={res}       872
{txt}{hline 13}{c +}{hline 34}   F(10, 861)      = {res}     4.19
{txt}       Model {c |} {res} 6.74601267        10  .674601267   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res}  138.71471       861  .161108838   {txt}R-squared       ={res}    0.0464
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0353
{txt}       Total {c |} {res} 145.460722       871  .167004274   {txt}Root MSE        =   {res} .40138

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~s{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .1428885{col 32}{space 2} .0335977{col 43}{space 1}    4.25{col 52}{space 3}0.000{col 60}{space 4} .0769455{col 73}{space 3} .2088316
{txt}{space 18} {c |}
{space 14}educ {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.0199122{col 32}{space 2} .0559382{col 43}{space 1}   -0.36{col 52}{space 3}0.722{col 60}{space 4}-.1297033{col 73}{space 3} .0898789
{txt}{space 16}3  {c |}{col 20}{res}{space 2}-.0553658{col 32}{space 2} .0573065{col 43}{space 1}   -0.97{col 52}{space 3}0.334{col 60}{space 4}-.1678427{col 73}{space 3} .0571111
{txt}{space 16}4  {c |}{col 20}{res}{space 2}-.0509319{col 32}{space 2} .0628003{col 43}{space 1}   -0.81{col 52}{space 3}0.418{col 60}{space 4}-.1741916{col 73}{space 3} .0723278
{txt}{space 18} {c |}
{space 12}female {c |}{col 20}{res}{space 2}-.0451157{col 32}{space 2} .0277707{col 43}{space 1}   -1.62{col 52}{space 3}0.105{col 60}{space 4}-.0996219{col 73}{space 3} .0093905
{txt}{space 18} {c |}
{space 10}race_wbh {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .0411105{col 32}{space 2} .0458578{col 43}{space 1}    0.90{col 52}{space 3}0.370{col 60}{space 4}-.0488957{col 73}{space 3} .1311166
{txt}{space 16}3  {c |}{col 20}{res}{space 2}-.0419118{col 32}{space 2} .0635091{col 43}{space 1}   -0.66{col 52}{space 3}0.509{col 60}{space 4}-.1665625{col 73}{space 3}  .082739
{txt}{space 18} {c |}
{space 11}age_cat {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .0661327{col 32}{space 2}  .037995{col 43}{space 1}    1.74{col 52}{space 3}0.082{col 60}{space 4} -.008441{col 73}{space 3} .1407065
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .0967269{col 32}{space 2} .0404142{col 43}{space 1}    2.39{col 52}{space 3}0.017{col 60}{space 4}  .017405{col 73}{space 3} .1760488
{txt}{space 16}4  {c |}{col 20}{res}{space 2}-.0471555{col 32}{space 2} .0505098{col 43}{space 1}   -0.93{col 52}{space 3}0.351{col 60}{space 4}-.1462923{col 73}{space 3} .0519812
{txt}{space 18} {c |}
{space 10}dem_lean {c |}{col 20}{res}{space 2}        0{col 32}{txt}  (omitted)
{space 10}gop_lean {c |}{col 20}{res}{space 2}        0{col 32}{txt}  (omitted)
{space 13}_cons {c |}{col 20}{res}{space 2} .4734005{col 32}{space 2} .0637253{col 43}{space 1}    7.43{col 52}{space 3}0.000{col 60}{space 4} .3483254{col 73}{space 3} .5984756
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. use "CCES_soto_kagan_wide.dta", clear
{txt}(Written by R)

{com}. local controls i.educ female i.race_wbh  i.age_cat  dem_lean gop_lean 
{txt}
{com}. eststo recall_sk_dems:   reg index_recall_correct_nominee engage_factor_resc if dem_lean==1

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     3,312
{txt}{hline 13}{c +}{hline 34}   F(1, 3310)      = {res}  1155.03
{txt}       Model {c |} {res} 184.067512         1  184.067512   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 527.486156     3,310  .159361377   {txt}R-squared       ={res}    0.2587
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2585
{txt}       Total {c |} {res} 711.553668     3,311  .214905971   {txt}Root MSE        =   {res}  .3992

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~e{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .4639179{col 32}{space 2} .0136504{col 43}{space 1}   33.99{col 52}{space 3}0.000{col 60}{space 4} .4371539{col 73}{space 3} .4906819
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .5129106{col 32}{space 2} .0069631{col 43}{space 1}   73.66{col 52}{space 3}0.000{col 60}{space 4} .4992583{col 73}{space 3} .5265629
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo recall_skcont_dems:  reg index_recall_correct_nominee engage_factor_resc   `controls' if dem_lean==1
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

      Source {c |}       SS           df       MS      Number of obs   ={res}     3,312
{txt}{hline 13}{c +}{hline 34}   F(10, 3301)     = {res}   145.88
{txt}       Model {c |} {res} 218.078769        10  21.8078769   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res}   493.4749     3,301  .149492548   {txt}R-squared       ={res}    0.3065
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.3044
{txt}       Total {c |} {res} 711.553668     3,311  .214905971   {txt}Root MSE        =   {res} .38664

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~e{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .3783665{col 32}{space 2} .0158486{col 43}{space 1}   23.87{col 52}{space 3}0.000{col 60}{space 4} .3472924{col 73}{space 3} .4094406
{txt}{space 18} {c |}
{space 14}educ {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.0142305{col 32}{space 2} .0416669{col 43}{space 1}   -0.34{col 52}{space 3}0.733{col 60}{space 4} -.095926{col 73}{space 3} .0674651
{txt}{space 16}3  {c |}{col 20}{res}{space 2}-.0061166{col 32}{space 2} .0415605{col 43}{space 1}   -0.15{col 52}{space 3}0.883{col 60}{space 4}-.0876037{col 73}{space 3} .0753704
{txt}{space 16}4  {c |}{col 20}{res}{space 2}  .056811{col 32}{space 2} .0425108{col 43}{space 1}    1.34{col 52}{space 3}0.182{col 60}{space 4}-.0265392{col 73}{space 3} .1401613
{txt}{space 18} {c |}
{space 12}female {c |}{col 20}{res}{space 2}-.1491921{col 32}{space 2} .0139859{col 43}{space 1}  -10.67{col 52}{space 3}0.000{col 60}{space 4} -.176614{col 73}{space 3}-.1217703
{txt}{space 18} {c |}
{space 10}race_wbh {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.0810093{col 32}{space 2} .0167045{col 43}{space 1}   -4.85{col 52}{space 3}0.000{col 60}{space 4}-.1137614{col 73}{space 3}-.0482572
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .0022437{col 32}{space 2} .0243379{col 43}{space 1}    0.09{col 52}{space 3}0.927{col 60}{space 4}-.0454751{col 73}{space 3} .0499626
{txt}{space 18} {c |}
{space 11}age_cat {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .0398985{col 32}{space 2} .0233687{col 43}{space 1}    1.71{col 52}{space 3}0.088{col 60}{space 4}-.0059202{col 73}{space 3} .0857172
{txt}{space 16}3  {c |}{col 20}{res}{space 2}  .101804{col 32}{space 2} .0215179{col 43}{space 1}    4.73{col 52}{space 3}0.000{col 60}{space 4} .0596142{col 73}{space 3} .1439938
{txt}{space 16}4  {c |}{col 20}{res}{space 2} .1574833{col 32}{space 2} .0262137{col 43}{space 1}    6.01{col 52}{space 3}0.000{col 60}{space 4} .1060865{col 73}{space 3}   .20888
{txt}{space 18} {c |}
{space 10}dem_lean {c |}{col 20}{res}{space 2}        0{col 32}{txt}  (omitted)
{space 10}gop_lean {c |}{col 20}{res}{space 2}        0{col 32}{txt}  (omitted)
{space 13}_cons {c |}{col 20}{res}{space 2} .5163461{col 32}{space 2} .0440077{col 43}{space 1}   11.73{col 52}{space 3}0.000{col 60}{space 4} .4300609{col 73}{space 3} .6026313
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab recall_thomas_dems  recall_thomascont_dems recall_sk_dems recall_skcont_dems using  "table_A_09.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(OLS models of voter recall as a function of political engagement,  Democrats only\label{c -(}tableA09{c )-})
{res}{txt}(output written to {browse  `"table_A_09.tex"'})

{com}.         *REPUBLICANS
. use "thomas_wide_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ female i.race_wbh  i.age_cat  dem_lean gop_lean
{txt}
{com}. eststo recall_thomas_gops:  reg index_recall_correct_thomas  engage_factor_resc if gop_lean==1

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       822
{txt}{hline 13}{c +}{hline 34}   F(1, 820)       = {res}    16.47
{txt}       Model {c |} {res} 2.89445117         1  2.89445117   {txt}Prob > F        ={res}    0.0001
{txt}    Residual {c |} {res} 144.125318       820  .175762583   {txt}R-squared       ={res}    0.0197
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0185
{txt}       Total {c |} {res} 147.019769       821  .179074018   {txt}Root MSE        =   {res} .41924

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~s{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2}  .123159{col 32}{space 2} .0303491{col 43}{space 1}    4.06{col 52}{space 3}0.000{col 60}{space 4} .0635879{col 73}{space 3} .1827302
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .4646839{col 32}{space 2} .0146856{col 43}{space 1}   31.64{col 52}{space 3}0.000{col 60}{space 4} .4358581{col 73}{space 3} .4935097
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo recall_thomascont_gops:  reg index_recall_correct_thomas  engage_factor_resc  `controls' if gop_lean==1
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

      Source {c |}       SS           df       MS      Number of obs   ={res}       812
{txt}{hline 13}{c +}{hline 34}   F(10, 801)      = {res}     3.28
{txt}       Model {c |} {res} 5.69691272        10  .569691272   {txt}Prob > F        ={res}    0.0004
{txt}    Residual {c |} {res} 138.970575       801  .173496348   {txt}R-squared       ={res}    0.0394
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0274
{txt}       Total {c |} {res} 144.667488       811  .178381612   {txt}Root MSE        =   {res} .41653

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~s{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .1446682{col 32}{space 2} .0358551{col 43}{space 1}    4.03{col 52}{space 3}0.000{col 60}{space 4} .0742872{col 73}{space 3} .2150492
{txt}{space 18} {c |}
{space 14}educ {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .0652165{col 32}{space 2} .0807249{col 43}{space 1}    0.81{col 52}{space 3}0.419{col 60}{space 4}-.0932408{col 73}{space 3} .2236739
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .0890861{col 32}{space 2} .0817061{col 43}{space 1}    1.09{col 52}{space 3}0.276{col 60}{space 4}-.0712973{col 73}{space 3} .2494695
{txt}{space 16}4  {c |}{col 20}{res}{space 2} .0284748{col 32}{space 2}   .08348{col 43}{space 1}    0.34{col 52}{space 3}0.733{col 60}{space 4}-.1353907{col 73}{space 3} .1923402
{txt}{space 18} {c |}
{space 12}female {c |}{col 20}{res}{space 2}-.0733133{col 32}{space 2} .0297544{col 43}{space 1}   -2.46{col 52}{space 3}0.014{col 60}{space 4}-.1317191{col 73}{space 3}-.0149075
{txt}{space 18} {c |}
{space 10}race_wbh {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .1781737{col 32}{space 2} .1593504{col 43}{space 1}    1.12{col 52}{space 3}0.264{col 60}{space 4}  -.13462{col 73}{space 3} .4909674
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .0284702{col 32}{space 2} .0932246{col 43}{space 1}    0.31{col 52}{space 3}0.760{col 60}{space 4}-.1545232{col 73}{space 3} .2114637
{txt}{space 18} {c |}
{space 11}age_cat {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.0493778{col 32}{space 2} .0401432{col 43}{space 1}   -1.23{col 52}{space 3}0.219{col 60}{space 4}-.1281761{col 73}{space 3} .0294206
{txt}{space 16}3  {c |}{col 20}{res}{space 2}-.0722473{col 32}{space 2} .0437591{col 43}{space 1}   -1.65{col 52}{space 3}0.099{col 60}{space 4}-.1581433{col 73}{space 3} .0136487
{txt}{space 16}4  {c |}{col 20}{res}{space 2}-.0910883{col 32}{space 2} .0529123{col 43}{space 1}   -1.72{col 52}{space 3}0.086{col 60}{space 4}-.1949515{col 73}{space 3} .0127749
{txt}{space 18} {c |}
{space 10}dem_lean {c |}{col 20}{res}{space 2}        0{col 32}{txt}  (omitted)
{space 10}gop_lean {c |}{col 20}{res}{space 2}        0{col 32}{txt}  (omitted)
{space 13}_cons {c |}{col 20}{res}{space 2} .4862254{col 32}{space 2} .0843185{col 43}{space 1}    5.77{col 52}{space 3}0.000{col 60}{space 4} .3207141{col 73}{space 3} .6517367
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. use "CCES_soto_kagan_wide.dta", clear
{txt}(Written by R)

{com}. local controls i.educ female i.race_wbh  i.age_cat  dem_lean gop_lean 
{txt}
{com}. eststo recall_sk_gops:   reg index_recall_correct_nominee engage_factor_resc if gop_lean==1

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     3,182
{txt}{hline 13}{c +}{hline 34}   F(1, 3180)      = {res}   729.43
{txt}       Model {c |} {res} 116.552332         1  116.552332   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 508.119259     3,180   .15978593   {txt}R-squared       ={res}    0.1866
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1863
{txt}       Total {c |} {res}  624.67159     3,181  .196375854   {txt}Root MSE        =   {res} .39973

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~e{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .5125149{col 32}{space 2} .0189765{col 43}{space 1}   27.01{col 52}{space 3}0.000{col 60}{space 4} .4753076{col 73}{space 3} .5497223
{txt}{space 13}_cons {c |}{col 20}{res}{space 2}  .552933{col 32}{space 2} .0076234{col 43}{space 1}   72.53{col 52}{space 3}0.000{col 60}{space 4} .5379857{col 73}{space 3} .5678804
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo recall_skcont_gops:  reg index_recall_correct_nominee engage_factor_resc   `controls' if gop_lean==1
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

      Source {c |}       SS           df       MS      Number of obs   ={res}     3,182
{txt}{hline 13}{c +}{hline 34}   F(10, 3171)     = {res}    87.30
{txt}       Model {c |} {res}  134.84858        10   13.484858   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 489.823011     3,171  .154469571   {txt}R-squared       ={res}    0.2159
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2134
{txt}       Total {c |} {res}  624.67159     3,181  .196375854   {txt}Root MSE        =   {res} .39303

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~e{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .4439665{col 32}{space 2} .0220562{col 43}{space 1}   20.13{col 52}{space 3}0.000{col 60}{space 4} .4007207{col 73}{space 3} .4872124
{txt}{space 18} {c |}
{space 14}educ {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.0444528{col 32}{space 2} .0486694{col 43}{space 1}   -0.91{col 52}{space 3}0.361{col 60}{space 4}-.1398795{col 73}{space 3}  .050974
{txt}{space 16}3  {c |}{col 20}{res}{space 2}-.0271864{col 32}{space 2} .0490646{col 43}{space 1}   -0.55{col 52}{space 3}0.580{col 60}{space 4}-.1233879{col 73}{space 3} .0690151
{txt}{space 16}4  {c |}{col 20}{res}{space 2}-.0351749{col 32}{space 2}  .049793{col 43}{space 1}   -0.71{col 52}{space 3}0.480{col 60}{space 4}-.1328046{col 73}{space 3} .0624549
{txt}{space 18} {c |}
{space 12}female {c |}{col 20}{res}{space 2}-.1351007{col 32}{space 2} .0143798{col 43}{space 1}   -9.40{col 52}{space 3}0.000{col 60}{space 4}-.1632953{col 73}{space 3} -.106906
{txt}{space 18} {c |}
{space 10}race_wbh {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.0314622{col 32}{space 2} .0480893{col 43}{space 1}   -0.65{col 52}{space 3}0.513{col 60}{space 4}-.1257515{col 73}{space 3} .0628271
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .0086077{col 32}{space 2} .0287955{col 43}{space 1}    0.30{col 52}{space 3}0.765{col 60}{space 4}-.0478519{col 73}{space 3} .0650674
{txt}{space 18} {c |}
{space 11}age_cat {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .0329416{col 32}{space 2} .0317253{col 43}{space 1}    1.04{col 52}{space 3}0.299{col 60}{space 4}-.0292627{col 73}{space 3} .0951458
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .1048744{col 32}{space 2}  .029621{col 43}{space 1}    3.54{col 52}{space 3}0.000{col 60}{space 4} .0467962{col 73}{space 3} .1629526
{txt}{space 16}4  {c |}{col 20}{res}{space 2}   .12086{col 32}{space 2} .0314428{col 43}{space 1}    3.84{col 52}{space 3}0.000{col 60}{space 4} .0592097{col 73}{space 3} .1825104
{txt}{space 18} {c |}
{space 10}dem_lean {c |}{col 20}{res}{space 2}        0{col 32}{txt}  (omitted)
{space 10}gop_lean {c |}{col 20}{res}{space 2}        0{col 32}{txt}  (omitted)
{space 13}_cons {c |}{col 20}{res}{space 2} .5698881{col 32}{space 2} .0549328{col 43}{space 1}   10.37{col 52}{space 3}0.000{col 60}{space 4} .4621808{col 73}{space 3} .6775954
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab recall_thomas_gops  recall_thomascont_gops recall_sk_gops recall_skcont_gops using  "table_A_10.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(OLS models of voter recall as a function of political engagement,  Republicans only\label{c -(}tableA10{c )-})
{res}{txt}(output written to {browse  `"table_A_10.tex"'})

{com}.         
. *TABLE A-18: separate results for Sotomayor and Kagan
. eststo recall_soto:      reg index_recall_correct_nominee engage_factor_resc if nominee=="sotomayor"

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     2,409
{txt}{hline 13}{c +}{hline 34}   F(1, 2407)      = {res}   725.54
{txt}       Model {c |} {res} 118.195618         1  118.195618   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res}  392.11779     2,407  .162907266   {txt}R-squared       ={res}    0.2316
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2313
{txt}       Total {c |} {res} 510.313408     2,408  .211924173   {txt}Root MSE        =   {res} .40362

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~e{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .4431007{col 32}{space 2} .0164502{col 43}{space 1}   26.94{col 52}{space 3}0.000{col 60}{space 4} .4108426{col 73}{space 3} .4753588
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .5197177{col 32}{space 2} .0082234{col 43}{space 1}   63.20{col 52}{space 3}0.000{col 60}{space 4}  .503592{col 73}{space 3} .5358434
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo recall_sotocont:  reg index_recall_correct_nominee engage_factor_resc   `controls'  if nominee=="sotomayor"

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     2,409
{txt}{hline 13}{c +}{hline 34}   F(12, 2396)     = {res}    76.66
{txt}       Model {c |} {res} 141.573865        12  11.7978221   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 368.739543     2,396  .153897973   {txt}R-squared       ={res}    0.2774
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2738
{txt}       Total {c |} {res} 510.313408     2,408  .211924173   {txt}Root MSE        =   {res}  .3923

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~e{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .4063766{col 32}{space 2} .0214546{col 43}{space 1}   18.94{col 52}{space 3}0.000{col 60}{space 4} .3643051{col 73}{space 3} .4484481
{txt}{space 18} {c |}
{space 14}educ {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.0664316{col 32}{space 2} .0396074{col 43}{space 1}   -1.68{col 52}{space 3}0.094{col 60}{space 4}-.1440999{col 73}{space 3} .0112368
{txt}{space 16}3  {c |}{col 20}{res}{space 2}-.0304839{col 32}{space 2} .0415218{col 43}{space 1}   -0.73{col 52}{space 3}0.463{col 60}{space 4}-.1119063{col 73}{space 3} .0509385
{txt}{space 16}4  {c |}{col 20}{res}{space 2}  -.03397{col 32}{space 2} .0438089{col 43}{space 1}   -0.78{col 52}{space 3}0.438{col 60}{space 4}-.1198773{col 73}{space 3} .0519374
{txt}{space 18} {c |}
{space 12}female {c |}{col 20}{res}{space 2}-.1436203{col 32}{space 2} .0166368{col 43}{space 1}   -8.63{col 52}{space 3}0.000{col 60}{space 4}-.1762443{col 73}{space 3}-.1109964
{txt}{space 18} {c |}
{space 10}race_wbh {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.0214867{col 32}{space 2} .0248143{col 43}{space 1}   -0.87{col 52}{space 3}0.387{col 60}{space 4}-.0701465{col 73}{space 3}  .027173
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .0225714{col 32}{space 2} .0258366{col 43}{space 1}    0.87{col 52}{space 3}0.382{col 60}{space 4} -.028093{col 73}{space 3} .0732357
{txt}{space 18} {c |}
{space 11}age_cat {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .0242609{col 32}{space 2} .0247049{col 43}{space 1}    0.98{col 52}{space 3}0.326{col 60}{space 4}-.0241842{col 73}{space 3} .0727061
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .1009419{col 32}{space 2} .0249098{col 43}{space 1}    4.05{col 52}{space 3}0.000{col 60}{space 4}  .052095{col 73}{space 3} .1497888
{txt}{space 16}4  {c |}{col 20}{res}{space 2} .1324235{col 32}{space 2} .0301448{col 43}{space 1}    4.39{col 52}{space 3}0.000{col 60}{space 4}  .073311{col 73}{space 3} .1915361
{txt}{space 18} {c |}
{space 10}dem_lean {c |}{col 20}{res}{space 2} -.124417{col 32}{space 2} .0271291{col 43}{space 1}   -4.59{col 52}{space 3}0.000{col 60}{space 4} -.177616{col 73}{space 3} -.071218
{txt}{space 10}gop_lean {c |}{col 20}{res}{space 2}-.1105598{col 32}{space 2} .0281067{col 43}{space 1}   -3.93{col 52}{space 3}0.000{col 60}{space 4}-.1656758{col 73}{space 3}-.0554439
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .6770765{col 32}{space 2} .0508216{col 43}{space 1}   13.32{col 52}{space 3}0.000{col 60}{space 4} .5774177{col 73}{space 3} .7767353
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo recall_kagan:     reg index_recall_correct_nominee engage_factor_resc if nominee=="kagan"

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     4,902
{txt}{hline 13}{c +}{hline 34}   F(1, 4900)      = {res}  1601.65
{txt}       Model {c |} {res} 256.204982         1  256.204982   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res}  783.81705     4,900  .159962663   {txt}R-squared       ={res}    0.2463
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2462
{txt}       Total {c |} {res} 1040.02203     4,901  .212206087   {txt}Root MSE        =   {res} .39995

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~e{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .4572792{col 32}{space 2} .0114261{col 43}{space 1}   40.02{col 52}{space 3}0.000{col 60}{space 4}  .434879{col 73}{space 3} .4796794
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .5630355{col 32}{space 2} .0057125{col 43}{space 1}   98.56{col 52}{space 3}0.000{col 60}{space 4} .5518365{col 73}{space 3} .5742345
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo recall_kagancont:         reg index_recall_correct_nominee engage_factor_resc   `controls'  if nominee=="kagan"

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     4,902
{txt}{hline 13}{c +}{hline 34}   F(12, 4889)     = {res}   166.14
{txt}       Model {c |} {res} 301.256088        12   25.104674   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 738.765943     4,889  .151107781   {txt}R-squared       ={res}    0.2897
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2879
{txt}       Total {c |} {res} 1040.02203     4,901  .212206087   {txt}Root MSE        =   {res} .38873

{txt}{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}index_recall_cor~e{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      t{col 52}   P>|t|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
engage_factor_resc {c |}{col 20}{res}{space 2} .3859119{col 32}{space 2} .0142503{col 43}{space 1}   27.08{col 52}{space 3}0.000{col 60}{space 4} .3579748{col 73}{space 3}  .413849
{txt}{space 18} {c |}
{space 14}educ {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.0071702{col 32}{space 2} .0441753{col 43}{space 1}   -0.16{col 52}{space 3}0.871{col 60}{space 4}-.0937736{col 73}{space 3} .0794332
{txt}{space 16}3  {c |}{col 20}{res}{space 2} -.006483{col 32}{space 2} .0439628{col 43}{space 1}   -0.15{col 52}{space 3}0.883{col 60}{space 4}-.0926699{col 73}{space 3}  .079704
{txt}{space 16}4  {c |}{col 20}{res}{space 2} .0300676{col 32}{space 2} .0446458{col 43}{space 1}    0.67{col 52}{space 3}0.501{col 60}{space 4}-.0574583{col 73}{space 3} .1175934
{txt}{space 18} {c |}
{space 12}female {c |}{col 20}{res}{space 2}-.1375263{col 32}{space 2} .0115455{col 43}{space 1}  -11.91{col 52}{space 3}0.000{col 60}{space 4}-.1601608{col 73}{space 3}-.1148919
{txt}{space 18} {c |}
{space 10}race_wbh {c |}
{space 16}2  {c |}{col 20}{res}{space 2}-.1060644{col 32}{space 2} .0187791{col 43}{space 1}   -5.65{col 52}{space 3}0.000{col 60}{space 4}-.1428797{col 73}{space 3} -.069249
{txt}{space 16}3  {c |}{col 20}{res}{space 2}-.0087946{col 32}{space 2} .0237653{col 43}{space 1}   -0.37{col 52}{space 3}0.711{col 60}{space 4}-.0553853{col 73}{space 3}  .037796
{txt}{space 18} {c |}
{space 11}age_cat {c |}
{space 16}2  {c |}{col 20}{res}{space 2} .0646055{col 32}{space 2} .0249928{col 43}{space 1}    2.58{col 52}{space 3}0.010{col 60}{space 4} .0156084{col 73}{space 3} .1136026
{txt}{space 16}3  {c |}{col 20}{res}{space 2} .1199627{col 32}{space 2} .0229314{col 43}{space 1}    5.23{col 52}{space 3}0.000{col 60}{space 4} .0750068{col 73}{space 3} .1649186
{txt}{space 16}4  {c |}{col 20}{res}{space 2} .1508834{col 32}{space 2} .0251841{col 43}{space 1}    5.99{col 52}{space 3}0.000{col 60}{space 4} .1015113{col 73}{space 3} .2002555
{txt}{space 18} {c |}
{space 10}dem_lean {c |}{col 20}{res}{space 2}-.0677463{col 32}{space 2} .0199409{col 43}{space 1}   -3.40{col 52}{space 3}0.001{col 60}{space 4}-.1068393{col 73}{space 3}-.0286532
{txt}{space 10}gop_lean {c |}{col 20}{res}{space 2}-.0540052{col 32}{space 2} .0203029{col 43}{space 1}   -2.66{col 52}{space 3}0.008{col 60}{space 4} -.093808{col 73}{space 3}-.0142025
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .5832719{col 32}{space 2}   .05265{col 43}{space 1}   11.08{col 52}{space 3}0.000{col 60}{space 4} .4800541{col 73}{space 3} .6864896
{txt}{hline 19}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab recall_soto recall_sotocont recall_kagan recall_kagancont  using  "table_A_18.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(OLS models of voter recall as a function of political engagement,  Sotomayor and Kagan separately\label{c -(}tableA18{c )-})
{res}{txt}(output written to {browse  `"table_A_18.tex"'})

{com}.         
.         
.         
. *****************************************************************
. *OLS regressions of voters' perceptions of how senators voted on nominees and the party of their senators
.         *(SWITCH TO LONG DATA)
. *****************************************************************
. *TABLE 3, THOMAS
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_ideo_agreement
{txt}
{com}. *outcome: perceived thomas agreement 
. eststo thomas_sen_perception_1:  reg sen_perceived_thomas_agreement sen_actual_thomas_agreement sen_actual_party_agreement,  cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     5,518
                                                {txt}F(2, 2758)        =  {res}    30.31
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0166
                                                {txt}Root MSE          =    {res}  .7938

{txt}{ralign 85:(Std. Err. adjusted for {res:2,759} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_tho~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .1014194{col 33}{space 2}  .014667{col 44}{space 1}    6.91{col 53}{space 3}0.000{col 61}{space 4}   .07266{col 74}{space 3} .1301788
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0382508{col 33}{space 2} .0133385{col 44}{space 1}    2.87{col 53}{space 3}0.004{col 61}{space 4} .0120963{col 74}{space 3} .0644053
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .054978{col 33}{space 2} .0121939{col 44}{space 1}    4.51{col 53}{space 3}0.000{col 61}{space 4} .0310679{col 74}{space 3} .0788881
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_sen_perception_2:  reg sen_perceived_thomas_agreement sen_actual_thomas_agreement sen_actual_party_agreement  `controls', cluster(case_id)
{p 0 6 2}{txt}note: sen_actual_ideo_agreement omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     3,666
                                                {txt}F(15, 1832)       =  {res}     5.54
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0298
                                                {txt}Root MSE          =    {res} .83995

{txt}{ralign 85:(Std. Err. adjusted for {res:1,833} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_tho~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .1199581{col 33}{space 2} .0180474{col 44}{space 1}    6.65{col 53}{space 3}0.000{col 61}{space 4} .0845624{col 74}{space 3} .1553538
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0425111{col 33}{space 2} .0169361{col 44}{space 1}    2.51{col 53}{space 3}0.012{col 61}{space 4} .0092951{col 74}{space 3} .0757271
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0293355{col 33}{space 2} .0726955{col 44}{space 1}    0.40{col 53}{space 3}0.687{col 61}{space 4}-.1132393{col 74}{space 3} .1719104
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0335099{col 33}{space 2} .0744756{col 44}{space 1}    0.45{col 53}{space 3}0.653{col 61}{space 4}-.1125561{col 74}{space 3} .1795759
{txt}{space 17}4  {c |}{col 21}{res}{space 2}   .13361{col 33}{space 2} .0777891{col 44}{space 1}    1.72{col 53}{space 3}0.086{col 61}{space 4}-.0189546{col 74}{space 3} .2861746
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0337171{col 33}{space 2} .0318612{col 44}{space 1}   -1.06{col 53}{space 3}0.290{col 61}{space 4}-.0962051{col 74}{space 3} .0287709
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1086009{col 33}{space 2}  .072611{col 44}{space 1}    1.50{col 53}{space 3}0.135{col 61}{space 4}-.0338081{col 74}{space 3}   .25101
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0406689{col 33}{space 2} .0864754{col 44}{space 1}    0.47{col 53}{space 3}0.638{col 61}{space 4}-.1289317{col 74}{space 3} .2102695
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0212526{col 33}{space 2} .0429749{col 44}{space 1}   -0.49{col 53}{space 3}0.621{col 61}{space 4}-.1055375{col 74}{space 3} .0630323
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0237166{col 33}{space 2}  .047296{col 44}{space 1}   -0.50{col 53}{space 3}0.616{col 61}{space 4}-.1164763{col 74}{space 3} .0690432
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.026464{col 33}{space 2} .0562466{col 44}{space 1}   -0.47{col 53}{space 3}0.638{col 61}{space 4}-.1367783{col 74}{space 3} .0838503
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0360617{col 33}{space 2} .0577654{col 44}{space 1}    0.62{col 53}{space 3}0.533{col 61}{space 4}-.0772312{col 74}{space 3} .1493546
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .1012418{col 33}{space 2} .0569658{col 44}{space 1}    1.78{col 53}{space 3}0.076{col 61}{space 4} -.010483{col 74}{space 3} .2129665
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0324158{col 33}{space 2} .0135871{col 44}{space 1}   -2.39{col 53}{space 3}0.017{col 61}{space 4}-.0590635{col 74}{space 3} -.005768
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0208305{col 33}{space 2} .0455439{col 44}{space 1}    0.46{col 53}{space 3}0.647{col 61}{space 4}-.0684929{col 74}{space 3} .1101538
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}_cons {c |}{col 21}{res}{space 2}-.0683061{col 33}{space 2} .0993411{col 44}{space 1}   -0.69{col 53}{space 3}0.492{col 61}{space 4}-.2631399{col 74}{space 3} .1265277
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. * outcome: perceived party agreement
. eststo thomas_sen_perception_3:  reg sen_perceived_party_agreement sen_actual_thomas_agreement sen_actual_party_agreement,  cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     5,518
                                                {txt}F(2, 2758)        =  {res}   312.51
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1348
                                                {txt}Root MSE          =    {res} .49161

{txt}{ralign 85:(Std. Err. adjusted for {res:2,759} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_par~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0219731{col 33}{space 2} .0079383{col 44}{space 1}    2.77{col 53}{space 3}0.006{col 61}{space 4} .0064074{col 74}{space 3} .0375388
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2057396{col 33}{space 2} .0083264{col 44}{space 1}   24.71{col 53}{space 3}0.000{col 61}{space 4}  .189413{col 74}{space 3} .2220662
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0063764{col 33}{space 2} .0075202{col 44}{space 1}    0.85{col 53}{space 3}0.397{col 61}{space 4}-.0083693{col 74}{space 3} .0211222
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_sen_perception_4:  reg sen_perceived_party_agreement sen_actual_thomas_agreement sen_actual_party_agreement  `controls',  cluster(case_id)
{p 0 6 2}{txt}note: sen_actual_ideo_agreement omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     3,666
                                                {txt}F(15, 1832)       =  {res}    46.06
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1835
                                                {txt}Root MSE          =    {res}  .5296

{txt}{ralign 85:(Std. Err. adjusted for {res:1,833} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_par~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0309033{col 33}{space 2} .0099797{col 44}{space 1}    3.10{col 53}{space 3}0.002{col 61}{space 4} .0113306{col 74}{space 3} .0504761
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2128368{col 33}{space 2} .0106485{col 44}{space 1}   19.99{col 53}{space 3}0.000{col 61}{space 4} .1919523{col 74}{space 3} .2337213
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0094357{col 33}{space 2}  .035744{col 44}{space 1}   -0.26{col 53}{space 3}0.792{col 61}{space 4} -.079539{col 74}{space 3} .0606676
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0057716{col 33}{space 2} .0370009{col 44}{space 1}    0.16{col 53}{space 3}0.876{col 61}{space 4}-.0667969{col 74}{space 3}   .07834
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0098993{col 33}{space 2} .0412568{col 44}{space 1}    0.24{col 53}{space 3}0.810{col 61}{space 4} -.071016{col 74}{space 3} .0908145
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0055748{col 33}{space 2} .0201062{col 44}{space 1}    0.28{col 53}{space 3}0.782{col 61}{space 4}-.0338587{col 74}{space 3} .0450082
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0472143{col 33}{space 2} .0364905{col 44}{space 1}   -1.29{col 53}{space 3}0.196{col 61}{space 4}-.1187815{col 74}{space 3}  .024353
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0212249{col 33}{space 2} .0478779{col 44}{space 1}    0.44{col 53}{space 3}0.658{col 61}{space 4} -.072676{col 74}{space 3} .1151258
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}   .00108{col 33}{space 2} .0243704{col 44}{space 1}    0.04{col 53}{space 3}0.965{col 61}{space 4}-.0467167{col 74}{space 3} .0488767
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0106961{col 33}{space 2} .0283268{col 44}{space 1}   -0.38{col 53}{space 3}0.706{col 61}{space 4}-.0662523{col 74}{space 3} .0448601
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0385452{col 33}{space 2} .0354832{col 44}{space 1}   -1.09{col 53}{space 3}0.277{col 61}{space 4}-.1081369{col 74}{space 3} .0310466
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1039074{col 33}{space 2} .0162944{col 44}{space 1}    6.38{col 53}{space 3}0.000{col 61}{space 4} .0719498{col 74}{space 3}  .135865
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}-.1142863{col 33}{space 2} .0165335{col 44}{space 1}   -6.91{col 53}{space 3}0.000{col 61}{space 4}-.1467129{col 74}{space 3}-.0818598
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0092143{col 33}{space 2} .0077316{col 44}{space 1}    1.19{col 53}{space 3}0.234{col 61}{space 4}-.0059494{col 74}{space 3} .0243779
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0540264{col 33}{space 2} .0272946{col 44}{space 1}    1.98{col 53}{space 3}0.048{col 61}{space 4} .0004946{col 74}{space 3} .1075582
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}_cons {c |}{col 21}{res}{space 2}-.0216003{col 33}{space 2} .0433002{col 44}{space 1}   -0.50{col 53}{space 3}0.618{col 61}{space 4}-.1065233{col 74}{space 3} .0633227
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *Make Table 3, thomas portion (top)
. esttab thomas_sen_perception_1 thomas_sen_perception_2 thomas_sen_perception_3 thomas_sen_perception_4  using  "table_03_thomas.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(OLS Regressions of voters' perceptions of Clarence Thomas vote and party of senator\label{c -(}table_03_thomas{c )-})
{res}{txt}(output written to {browse  `"table_03_thomas.tex"'})

{com}. 
. *TABLE 3, SOTO/KAGAN
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. *outcome: perceived nominee agreement (
. eststo nominee_sen_perception_1:  reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    15,803
                                                {txt}F(2, 8047)        =  {res}  4519.62
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4681
                                                {txt}Root MSE          =    {res} .54968

{txt}{ralign 85:(Std. Err. adjusted for {res:8,048} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .4155945{col 33}{space 2}  .006925{col 44}{space 1}   60.01{col 53}{space 3}0.000{col 61}{space 4} .4020196{col 74}{space 3} .4291694
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1638352{col 33}{space 2} .0072072{col 44}{space 1}   22.73{col 53}{space 3}0.000{col 61}{space 4} .1497073{col 74}{space 3} .1779631
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0235563{col 33}{space 2} .0052974{col 44}{space 1}   -4.45{col 53}{space 3}0.000{col 61}{space 4}-.0339406{col 74}{space 3}-.0131719
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo nominee_sen_perception_2:  reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement `controls',  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    14,456
                                                {txt}F(15, 7235)       =  {res}   679.27
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4954
                                                {txt}Root MSE          =    {res} .54186

{txt}{ralign 85:(Std. Err. adjusted for {res:7,236} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .3962204{col 33}{space 2} .0077283{col 44}{space 1}   51.27{col 53}{space 3}0.000{col 61}{space 4} .3810707{col 74}{space 3} .4113701
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1032798{col 33}{space 2} .0086774{col 44}{space 1}   11.90{col 53}{space 3}0.000{col 61}{space 4} .0862696{col 74}{space 3}   .12029
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0602508{col 33}{space 2} .0335353{col 44}{space 1}   -1.80{col 53}{space 3}0.072{col 61}{space 4}-.1259897{col 74}{space 3} .0054881
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0645977{col 33}{space 2} .0336665{col 44}{space 1}   -1.92{col 53}{space 3}0.055{col 61}{space 4}-.1305939{col 74}{space 3} .0013986
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0568705{col 33}{space 2} .0346533{col 44}{space 1}   -1.64{col 53}{space 3}0.101{col 61}{space 4}-.1248012{col 74}{space 3} .0110602
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0089421{col 33}{space 2} .0113955{col 44}{space 1}   -0.78{col 53}{space 3}0.433{col 61}{space 4}-.0312807{col 74}{space 3} .0133964
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0094409{col 33}{space 2} .0183336{col 44}{space 1}    0.51{col 53}{space 3}0.607{col 61}{space 4}-.0264983{col 74}{space 3} .0453801
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0217028{col 33}{space 2} .0212131{col 44}{space 1}   -1.02{col 53}{space 3}0.306{col 61}{space 4}-.0632865{col 74}{space 3}  .019881
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0158695{col 33}{space 2} .0216599{col 44}{space 1}    0.73{col 53}{space 3}0.464{col 61}{space 4}-.0265902{col 74}{space 3} .0583292
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0029049{col 33}{space 2} .0199964{col 44}{space 1}    0.15{col 53}{space 3}0.885{col 61}{space 4}-.0362938{col 74}{space 3} .0421036
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0036995{col 33}{space 2} .0224688{col 44}{space 1}    0.16{col 53}{space 3}0.869{col 61}{space 4}-.0403459{col 74}{space 3}  .047745
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}  .105756{col 33}{space 2} .0195649{col 44}{space 1}    5.41{col 53}{space 3}0.000{col 61}{space 4} .0674031{col 74}{space 3} .1441089
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}-.0418297{col 33}{space 2} .0203346{col 44}{space 1}   -2.06{col 53}{space 3}0.040{col 61}{space 4}-.0816915{col 74}{space 3}-.0019679
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0159955{col 33}{space 2}   .00448{col 44}{space 1}    3.57{col 53}{space 3}0.000{col 61}{space 4} .0072134{col 74}{space 3} .0247776
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}  .250399{col 33}{space 2} .0182441{col 44}{space 1}   13.72{col 53}{space 3}0.000{col 61}{space 4} .2146353{col 74}{space 3} .2861628
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0921799{col 33}{space 2} .0416843{col 44}{space 1}   -2.21{col 53}{space 3}0.027{col 61}{space 4}-.1738933{col 74}{space 3}-.0104665
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. * outcome: actual nominee agreement
. eststo nominee_sen_perception_3:  reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}   130,558
                                                {txt}F(2, 66653)       =  {res} 97693.08
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.6732
                                                {txt}Root MSE          =    {res} .49787

{txt}{ralign 85:(Std. Err. adjusted for {res:66,654} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .0986598{col 33}{space 2} .0023269{col 44}{space 1}   42.40{col 53}{space 3}0.000{col 61}{space 4} .0940992{col 74}{space 3} .1032205
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2}  .695714{col 33}{space 2} .0026025{col 44}{space 1}  267.33{col 53}{space 3}0.000{col 61}{space 4} .6906132{col 74}{space 3} .7008149
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0082207{col 33}{space 2}  .001484{col 44}{space 1}   -5.54{col 53}{space 3}0.000{col 61}{space 4}-.0111293{col 74}{space 3}-.0053121
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo nominee_sen_perception_4:  reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement `controls',  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    14,385
                                                {txt}F(15, 7268)       =  {res}  1585.27
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.6798
                                                {txt}Root MSE          =    {res} .49434

{txt}{ralign 85:(Std. Err. adjusted for {res:7,269} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .0812487{col 33}{space 2} .0070874{col 44}{space 1}   11.46{col 53}{space 3}0.000{col 61}{space 4} .0673554{col 74}{space 3}  .095142
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .6694099{col 33}{space 2} .0086339{col 44}{space 1}   77.53{col 53}{space 3}0.000{col 61}{space 4} .6524851{col 74}{space 3} .6863348
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0072864{col 33}{space 2} .0363226{col 44}{space 1}    0.20{col 53}{space 3}0.841{col 61}{space 4}-.0639165{col 74}{space 3} .0784893
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0240602{col 33}{space 2} .0364708{col 44}{space 1}   -0.66{col 53}{space 3}0.509{col 61}{space 4}-.0955535{col 74}{space 3} .0474331
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0287296{col 33}{space 2} .0371102{col 44}{space 1}   -0.77{col 53}{space 3}0.439{col 61}{space 4}-.1014764{col 74}{space 3} .0440172
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0070396{col 33}{space 2} .0091745{col 44}{space 1}   -0.77{col 53}{space 3}0.443{col 61}{space 4}-.0250242{col 74}{space 3}  .010945
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0198928{col 33}{space 2} .0179297{col 44}{space 1}    1.11{col 53}{space 3}0.267{col 61}{space 4}-.0152546{col 74}{space 3} .0550402
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0355813{col 33}{space 2} .0199232{col 44}{space 1}   -1.79{col 53}{space 3}0.074{col 61}{space 4}-.0746366{col 74}{space 3}  .003474
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0037555{col 33}{space 2}  .022135{col 44}{space 1}    0.17{col 53}{space 3}0.865{col 61}{space 4}-.0396355{col 74}{space 3} .0471464
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0013736{col 33}{space 2} .0203079{col 44}{space 1}   -0.07{col 53}{space 3}0.946{col 61}{space 4}-.0411829{col 74}{space 3} .0384357
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.000269{col 33}{space 2} .0209321{col 44}{space 1}   -0.01{col 53}{space 3}0.990{col 61}{space 4} -.041302{col 74}{space 3}  .040764
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}-.0099022{col 33}{space 2} .0111394{col 44}{space 1}   -0.89{col 53}{space 3}0.374{col 61}{space 4}-.0317387{col 74}{space 3} .0119343
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}-.0387585{col 33}{space 2} .0117917{col 44}{space 1}   -3.29{col 53}{space 3}0.001{col 61}{space 4}-.0618737{col 74}{space 3}-.0156433
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0221306{col 33}{space 2} .0049153{col 44}{space 1}    4.50{col 53}{space 3}0.000{col 61}{space 4} .0124951{col 74}{space 3} .0317662
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1582789{col 33}{space 2} .0169023{col 44}{space 1}    9.36{col 53}{space 3}0.000{col 61}{space 4} .1251454{col 74}{space 3} .1914124
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0279817{col 33}{space 2} .0410532{col 44}{space 1}   -0.68{col 53}{space 3}0.496{col 61}{space 4}-.1084578{col 74}{space 3} .0524944
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab nominee_sen_perception* using  "table_03_soto_kagan.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)  title(OLS Regressions of voters' perceptions of Sotomayor/Kagan vote and party of senator\label{c -(}table_03_sk{c )-})
{res}{txt}(output written to {browse  `"table_03_soto_kagan.tex"'})

{com}.         
. *Table A-6, same models but SEs clustered on senator
. *THOMAS
. *outcome: perceived Thomas agreement 
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_ideo_agreement
{txt}
{com}. eststo thomas_percep_sen_cluster_1: reg sen_perceived_thomas_agreement sen_actual_thomas_agreement sen_actual_party_agreement,  cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}     5,518
                                                {txt}F(2, 99)          =  {res}     5.76
                                                {txt}Prob > F          = {res}    0.0043
                                                {txt}R-squared         = {res}    0.0166
                                                {txt}Root MSE          =    {res}  .7938

{txt}{ralign 85:(Std. Err. adjusted for {res:100} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_tho~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .1014194{col 33}{space 2} .0346008{col 44}{space 1}    2.93{col 53}{space 3}0.004{col 61}{space 4} .0327639{col 74}{space 3} .1700749
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0382508{col 33}{space 2} .0164409{col 44}{space 1}    2.33{col 53}{space 3}0.022{col 61}{space 4} .0056285{col 74}{space 3}  .070873
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .054978{col 33}{space 2} .0117197{col 44}{space 1}    4.69{col 53}{space 3}0.000{col 61}{space 4} .0317236{col 74}{space 3} .0782324
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_percep_sen_cluster_2: reg sen_perceived_thomas_agreement sen_actual_thomas_agreement sen_actual_party_agreement sen_actual_ideo_agreement `controls',  cluster(sen_icpsr)
{p 0 6 2}{txt}note: sen_actual_ideo_agreement omitted because of collinearity{p_end}
{p 0 6 2}note: sen_actual_ideo_agreement omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     3,666
                                                {txt}F(15, 99)         =  {res}     3.07
                                                {txt}Prob > F          = {res}    0.0004
                                                {txt}R-squared         = {res}    0.0298
                                                {txt}Root MSE          =    {res} .83995

{txt}{ralign 85:(Std. Err. adjusted for {res:100} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_tho~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .1199581{col 33}{space 2} .0396398{col 44}{space 1}    3.03{col 53}{space 3}0.003{col 61}{space 4} .0413041{col 74}{space 3} .1986121
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0425111{col 33}{space 2} .0196319{col 44}{space 1}    2.17{col 53}{space 3}0.033{col 61}{space 4} .0035571{col 74}{space 3} .0814651
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0208305{col 33}{space 2} .0438344{col 44}{space 1}    0.48{col 53}{space 3}0.636{col 61}{space 4}-.0661464{col 74}{space 3} .1078073
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0293355{col 33}{space 2} .0628916{col 44}{space 1}    0.47{col 53}{space 3}0.642{col 61}{space 4}-.0954552{col 74}{space 3} .1541262
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0335099{col 33}{space 2} .0616617{col 44}{space 1}    0.54{col 53}{space 3}0.588{col 61}{space 4}-.0888404{col 74}{space 3} .1558602
{txt}{space 17}4  {c |}{col 21}{res}{space 2}   .13361{col 33}{space 2} .0664037{col 44}{space 1}    2.01{col 53}{space 3}0.047{col 61}{space 4} .0018506{col 74}{space 3} .2653695
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0337171{col 33}{space 2} .0270739{col 44}{space 1}   -1.25{col 53}{space 3}0.216{col 61}{space 4}-.0874377{col 74}{space 3} .0200034
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1086009{col 33}{space 2} .0697117{col 44}{space 1}    1.56{col 53}{space 3}0.122{col 61}{space 4}-.0297221{col 74}{space 3}  .246924
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0406689{col 33}{space 2} .0734736{col 44}{space 1}    0.55{col 53}{space 3}0.581{col 61}{space 4}-.1051188{col 74}{space 3} .1864565
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0212526{col 33}{space 2} .0436334{col 44}{space 1}   -0.49{col 53}{space 3}0.627{col 61}{space 4}-.1078307{col 74}{space 3} .0653256
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0237166{col 33}{space 2} .0470444{col 44}{space 1}   -0.50{col 53}{space 3}0.615{col 61}{space 4}-.1170629{col 74}{space 3} .0696297
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.026464{col 33}{space 2} .0566098{col 44}{space 1}   -0.47{col 53}{space 3}0.641{col 61}{space 4}-.1387901{col 74}{space 3} .0858621
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0360617{col 33}{space 2} .0489457{col 44}{space 1}    0.74{col 53}{space 3}0.463{col 61}{space 4}-.0610572{col 74}{space 3} .1331806
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .1012418{col 33}{space 2} .0480477{col 44}{space 1}    2.11{col 53}{space 3}0.038{col 61}{space 4} .0059047{col 74}{space 3} .1965788
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0324158{col 33}{space 2} .0117207{col 44}{space 1}   -2.77{col 53}{space 3}0.007{col 61}{space 4}-.0556721{col 74}{space 3}-.0091595
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}_cons {c |}{col 21}{res}{space 2}-.0683061{col 33}{space 2} .0792131{col 44}{space 1}   -0.86{col 53}{space 3}0.391{col 61}{space 4}-.2254821{col 74}{space 3} .0888699
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. * outcome: perceived party agreement
. eststo thomas_percep_sen_cluster_3: reg sen_perceived_party_agreement sen_actual_thomas_agreement sen_actual_party_agreement,  cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}     5,518
                                                {txt}F(2, 99)          =  {res}    34.01
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1348
                                                {txt}Root MSE          =    {res} .49161

{txt}{ralign 85:(Std. Err. adjusted for {res:100} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_par~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0219731{col 33}{space 2} .0099906{col 44}{space 1}    2.20{col 53}{space 3}0.030{col 61}{space 4} .0021497{col 74}{space 3} .0417966
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2057396{col 33}{space 2} .0250634{col 44}{space 1}    8.21{col 53}{space 3}0.000{col 61}{space 4} .1560083{col 74}{space 3} .2554709
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0063764{col 33}{space 2} .0072157{col 44}{space 1}    0.88{col 53}{space 3}0.379{col 61}{space 4} -.007941{col 74}{space 3} .0206939
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_percep_sen_cluster_4: reg sen_perceived_party_agreement sen_actual_thomas_agreement sen_actual_party_agreement sen_actual_ideo_agreement `controls',  cluster(sen_icpsr)
{p 0 6 2}{txt}note: sen_actual_ideo_agreement omitted because of collinearity{p_end}
{p 0 6 2}note: sen_actual_ideo_agreement omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     3,666
                                                {txt}F(15, 99)         =  {res}    14.82
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1835
                                                {txt}Root MSE          =    {res}  .5296

{txt}{ralign 85:(Std. Err. adjusted for {res:100} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_par~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0309033{col 33}{space 2} .0113414{col 44}{space 1}    2.72{col 53}{space 3}0.008{col 61}{space 4} .0083996{col 74}{space 3}  .053407
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2128368{col 33}{space 2} .0290607{col 44}{space 1}    7.32{col 53}{space 3}0.000{col 61}{space 4}  .155174{col 74}{space 3} .2704996
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0540264{col 33}{space 2} .0287144{col 44}{space 1}    1.88{col 53}{space 3}0.063{col 61}{space 4}-.0029492{col 74}{space 3} .1110021
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0094357{col 33}{space 2} .0307796{col 44}{space 1}   -0.31{col 53}{space 3}0.760{col 61}{space 4}-.0705091{col 74}{space 3} .0516377
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0057716{col 33}{space 2} .0327615{col 44}{space 1}    0.18{col 53}{space 3}0.861{col 61}{space 4}-.0592344{col 74}{space 3} .0707775
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0098993{col 33}{space 2}  .037991{col 44}{space 1}    0.26{col 53}{space 3}0.795{col 61}{space 4}-.0654832{col 74}{space 3} .0852817
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0055748{col 33}{space 2} .0178586{col 44}{space 1}    0.31{col 53}{space 3}0.756{col 61}{space 4}-.0298605{col 74}{space 3} .0410101
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0472143{col 33}{space 2} .0343829{col 44}{space 1}   -1.37{col 53}{space 3}0.173{col 61}{space 4}-.1154374{col 74}{space 3} .0210089
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0212249{col 33}{space 2} .0506794{col 44}{space 1}    0.42{col 53}{space 3}0.676{col 61}{space 4} -.079334{col 74}{space 3} .1217838
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}   .00108{col 33}{space 2} .0255573{col 44}{space 1}    0.04{col 53}{space 3}0.966{col 61}{space 4}-.0496312{col 74}{space 3} .0517912
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0106961{col 33}{space 2} .0275815{col 44}{space 1}   -0.39{col 53}{space 3}0.699{col 61}{space 4}-.0654238{col 74}{space 3} .0440315
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0385452{col 33}{space 2} .0384506{col 44}{space 1}   -1.00{col 53}{space 3}0.319{col 61}{space 4}-.1148395{col 74}{space 3} .0377492
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1039074{col 33}{space 2} .0308169{col 44}{space 1}    3.37{col 53}{space 3}0.001{col 61}{space 4} .0427601{col 74}{space 3} .1650548
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}-.1142863{col 33}{space 2}  .033559{col 44}{space 1}   -3.41{col 53}{space 3}0.001{col 61}{space 4}-.1808746{col 74}{space 3}-.0476981
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0092143{col 33}{space 2} .0070401{col 44}{space 1}    1.31{col 53}{space 3}0.194{col 61}{space 4}-.0047548{col 74}{space 3} .0231833
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}_cons {c |}{col 21}{res}{space 2}-.0216003{col 33}{space 2} .0425711{col 44}{space 1}   -0.51{col 53}{space 3}0.613{col 61}{space 4}-.1060706{col 74}{space 3} .0628699
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab thomas_percep_sen_cluster*  using  "table_A_06_thomas.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   title(Robustness check: perceptions of Thomas vote and party of senator clustered on senator\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A_06_thomas.tex"'})

{com}.         
. *SOTO/KAGAN     
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. eststo sk_perception_sen_cluster_1: reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement,  cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}    15,769
                                                {txt}F(2, 100)         =  {res}   363.27
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4683
                                                {txt}Root MSE          =    {res} .55004

{txt}{ralign 85:(Std. Err. adjusted for {res:101} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2}  .415601{col 33}{space 2} .0205467{col 44}{space 1}   20.23{col 53}{space 3}0.000{col 61}{space 4} .3748369{col 74}{space 3}  .456365
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1638484{col 33}{space 2} .0084227{col 44}{space 1}   19.45{col 53}{space 3}0.000{col 61}{space 4}  .147138{col 74}{space 3} .1805587
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0237355{col 33}{space 2} .0084962{col 44}{space 1}   -2.79{col 53}{space 3}0.006{col 61}{space 4}-.0405917{col 74}{space 3}-.0068793
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_perception_sen_cluster_2: reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement  `controls', cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}    14,456
                                                {txt}F(15, 100)        =  {res}   293.38
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4954
                                                {txt}Root MSE          =    {res} .54186

{txt}{ralign 85:(Std. Err. adjusted for {res:101} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .3962204{col 33}{space 2} .0213299{col 44}{space 1}   18.58{col 53}{space 3}0.000{col 61}{space 4} .3539025{col 74}{space 3} .4385383
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1032798{col 33}{space 2} .0122106{col 44}{space 1}    8.46{col 53}{space 3}0.000{col 61}{space 4} .0790543{col 74}{space 3} .1275054
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0602508{col 33}{space 2} .0284103{col 44}{space 1}   -2.12{col 53}{space 3}0.036{col 61}{space 4}-.1166161{col 74}{space 3}-.0038856
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0645977{col 33}{space 2} .0305354{col 44}{space 1}   -2.12{col 53}{space 3}0.037{col 61}{space 4}-.1251791{col 74}{space 3}-.0040163
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0568705{col 33}{space 2} .0299363{col 44}{space 1}   -1.90{col 53}{space 3}0.060{col 61}{space 4}-.1162632{col 74}{space 3} .0025222
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0089421{col 33}{space 2}  .009094{col 44}{space 1}   -0.98{col 53}{space 3}0.328{col 61}{space 4}-.0269843{col 74}{space 3}    .0091
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0094409{col 33}{space 2} .0248422{col 44}{space 1}    0.38{col 53}{space 3}0.705{col 61}{space 4}-.0398453{col 74}{space 3} .0587272
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0217028{col 33}{space 2} .0145548{col 44}{space 1}   -1.49{col 53}{space 3}0.139{col 61}{space 4} -.050579{col 74}{space 3} .0071735
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0158695{col 33}{space 2} .0209971{col 44}{space 1}    0.76{col 53}{space 3}0.452{col 61}{space 4}-.0257881{col 74}{space 3}  .057527
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0029049{col 33}{space 2} .0200176{col 44}{space 1}    0.15{col 53}{space 3}0.885{col 61}{space 4}-.0368095{col 74}{space 3} .0426193
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0036995{col 33}{space 2} .0208076{col 44}{space 1}    0.18{col 53}{space 3}0.859{col 61}{space 4}-.0375821{col 74}{space 3} .0449812
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}  .105756{col 33}{space 2} .0137981{col 44}{space 1}    7.66{col 53}{space 3}0.000{col 61}{space 4} .0783809{col 74}{space 3} .1331311
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}-.0418297{col 33}{space 2} .0227958{col 44}{space 1}   -1.83{col 53}{space 3}0.069{col 61}{space 4}-.0870558{col 74}{space 3} .0033965
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0159955{col 33}{space 2} .0036725{col 44}{space 1}    4.36{col 53}{space 3}0.000{col 61}{space 4} .0087093{col 74}{space 3} .0232817
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}  .250399{col 33}{space 2} .0149047{col 44}{space 1}   16.80{col 53}{space 3}0.000{col 61}{space 4} .2208285{col 74}{space 3} .2799695
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0921799{col 33}{space 2} .0403251{col 44}{space 1}   -2.29{col 53}{space 3}0.024{col 61}{space 4}-.1721838{col 74}{space 3} -.012176
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_perception_sen_cluster_3: reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement,  cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}   130,388
                                                {txt}F(2, 100)         =  {res}  1201.84
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.6732
                                                {txt}Root MSE          =    {res} .49819

{txt}{ralign 85:(Std. Err. adjusted for {res:101} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .0986601{col 33}{space 2} .0068376{col 44}{space 1}   14.43{col 53}{space 3}0.000{col 61}{space 4} .0850944{col 74}{space 3} .1122257
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .6957148{col 33}{space 2} .0173346{col 44}{space 1}   40.13{col 53}{space 3}0.000{col 61}{space 4} .6613235{col 74}{space 3}  .730106
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0082315{col 33}{space 2} .0074808{col 44}{space 1}   -1.10{col 53}{space 3}0.274{col 61}{space 4}-.0230732{col 74}{space 3} .0066102
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_perception_sen_cluster_4: reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement  `controls',  cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}    14,385
                                                {txt}F(15, 100)        =  {res}   544.75
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.6798
                                                {txt}Root MSE          =    {res} .49434

{txt}{ralign 85:(Std. Err. adjusted for {res:101} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .0812487{col 33}{space 2} .0086743{col 44}{space 1}    9.37{col 53}{space 3}0.000{col 61}{space 4}  .064039{col 74}{space 3} .0984583
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .6694099{col 33}{space 2} .0182655{col 44}{space 1}   36.65{col 53}{space 3}0.000{col 61}{space 4} .6331717{col 74}{space 3} .7056482
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0072864{col 33}{space 2} .0353231{col 44}{space 1}    0.21{col 53}{space 3}0.837{col 61}{space 4}-.0627936{col 74}{space 3} .0773664
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0240602{col 33}{space 2} .0336337{col 44}{space 1}   -0.72{col 53}{space 3}0.476{col 61}{space 4}-.0907886{col 74}{space 3} .0426681
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0287296{col 33}{space 2} .0326303{col 44}{space 1}   -0.88{col 53}{space 3}0.381{col 61}{space 4}-.0934672{col 74}{space 3} .0360079
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0070396{col 33}{space 2} .0072661{col 44}{space 1}   -0.97{col 53}{space 3}0.335{col 61}{space 4}-.0214554{col 74}{space 3} .0073762
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0198928{col 33}{space 2} .0254746{col 44}{space 1}    0.78{col 53}{space 3}0.437{col 61}{space 4}-.0306481{col 74}{space 3} .0704338
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0355813{col 33}{space 2} .0174704{col 44}{space 1}   -2.04{col 53}{space 3}0.044{col 61}{space 4}-.0702421{col 74}{space 3}-.0009206
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0037555{col 33}{space 2} .0183964{col 44}{space 1}    0.20{col 53}{space 3}0.839{col 61}{space 4}-.0327424{col 74}{space 3} .0402533
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0013736{col 33}{space 2} .0224881{col 44}{space 1}   -0.06{col 53}{space 3}0.951{col 61}{space 4}-.0459892{col 74}{space 3} .0432421
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.000269{col 33}{space 2} .0180984{col 44}{space 1}   -0.01{col 53}{space 3}0.988{col 61}{space 4}-.0361757{col 74}{space 3} .0356378
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}-.0099022{col 33}{space 2} .0227919{col 44}{space 1}   -0.43{col 53}{space 3}0.665{col 61}{space 4}-.0551208{col 74}{space 3} .0353164
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}-.0387585{col 33}{space 2} .0203279{col 44}{space 1}   -1.91{col 53}{space 3}0.059{col 61}{space 4}-.0790884{col 74}{space 3} .0015714
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0221306{col 33}{space 2} .0048746{col 44}{space 1}    4.54{col 53}{space 3}0.000{col 61}{space 4} .0124595{col 74}{space 3} .0318018
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1582789{col 33}{space 2} .0172299{col 44}{space 1}    9.19{col 53}{space 3}0.000{col 61}{space 4} .1240952{col 74}{space 3} .1924625
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0279817{col 33}{space 2} .0384426{col 44}{space 1}   -0.73{col 53}{space 3}0.468{col 61}{space 4}-.1042507{col 74}{space 3} .0482873
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. *these go in appendix table-- with SEs clustered on senators
. esttab sk_perception_sen_cluster*  using  "table_A_06_soto_kagan.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)       title(Robustness check: perceptions of Sotomayor/Kagan vote and party of senator clustered on senator\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A_06_soto_kagan.tex"'})

{com}. 
. *TABLES A-11 and A-12: Separate results for Democrats and Republicans
.         *DEMOCRATS
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_ideo_agreement
{txt}
{com}. *outcome: perceived thomas agreement 
. eststo thomas_sen_perception_1_d:  reg sen_perceived_thomas_agreement sen_actual_thomas_agreement sen_actual_party_agreement if dem_lean==1,  cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     2,584
                                                {txt}F(2, 1291)        =  {res}    11.89
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0130
                                                {txt}Root MSE          =    {res}   .822

{txt}{ralign 85:(Std. Err. adjusted for {res:1,292} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_tho~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0833601{col 33}{space 2} .0208881{col 44}{space 1}    3.99{col 53}{space 3}0.000{col 61}{space 4} .0423816{col 74}{space 3} .1243385
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0471901{col 33}{space 2} .0179022{col 44}{space 1}    2.64{col 53}{space 3}0.008{col 61}{space 4} .0120694{col 74}{space 3} .0823107
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0344034{col 33}{space 2} .0186531{col 44}{space 1}    1.84{col 53}{space 3}0.065{col 61}{space 4}-.0021903{col 74}{space 3}  .070997
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_sen_perception_2_d:  reg sen_perceived_thomas_agreement sen_actual_thomas_agreement sen_actual_party_agreement  `controls' if dem_lean==1, cluster(case_id)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}
{p 0 6 2}note: sen_actual_ideo_agreement omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     1,744
                                                {txt}F(13, 871)        =  {res}     3.34
                                                {txt}Prob > F          = {res}    0.0001
                                                {txt}R-squared         = {res}    0.0314
                                                {txt}Root MSE          =    {res} .86138

{txt}{ralign 85:(Std. Err. adjusted for {res:872} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_tho~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .1107191{col 33}{space 2} .0252919{col 44}{space 1}    4.38{col 53}{space 3}0.000{col 61}{space 4} .0610789{col 74}{space 3} .1603592
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2}  .048147{col 33}{space 2} .0228041{col 44}{space 1}    2.11{col 53}{space 3}0.035{col 61}{space 4} .0033896{col 74}{space 3} .0929044
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0507097{col 33}{space 2} .0932697{col 44}{space 1}   -0.54{col 53}{space 3}0.587{col 61}{space 4}-.2337693{col 74}{space 3} .1323499
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0071766{col 33}{space 2} .0951574{col 44}{space 1}   -0.08{col 53}{space 3}0.940{col 61}{space 4}-.1939412{col 74}{space 3}  .179588
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .1310021{col 33}{space 2} .1024716{col 44}{space 1}    1.28{col 53}{space 3}0.201{col 61}{space 4} -.070118{col 74}{space 3} .3321223
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0275972{col 33}{space 2} .0474396{col 44}{space 1}    0.58{col 53}{space 3}0.561{col 61}{space 4}-.0655122{col 74}{space 3} .1207065
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1085967{col 33}{space 2} .0776834{col 44}{space 1}    1.40{col 53}{space 3}0.162{col 61}{space 4}-.0438719{col 74}{space 3} .2610653
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .1245951{col 33}{space 2} .1131796{col 44}{space 1}    1.10{col 53}{space 3}0.271{col 61}{space 4}-.0975415{col 74}{space 3} .3467316
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0053146{col 33}{space 2} .0635488{col 44}{space 1}    0.08{col 53}{space 3}0.933{col 61}{space 4} -.119412{col 74}{space 3} .1300412
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0373751{col 33}{space 2} .0672794{col 44}{space 1}    0.56{col 53}{space 3}0.579{col 61}{space 4}-.0946736{col 74}{space 3} .1694239
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0684001{col 33}{space 2}   .08143{col 44}{space 1}    0.84{col 53}{space 3}0.401{col 61}{space 4}-.0914218{col 74}{space 3} .2282221
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0525363{col 33}{space 2}  .020146{col 44}{space 1}   -2.61{col 53}{space 3}0.009{col 61}{space 4}-.0920767{col 74}{space 3} -.012996
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}-.0226007{col 33}{space 2} .0657726{col 44}{space 1}   -0.34{col 53}{space 3}0.731{col 61}{space 4}-.1516919{col 74}{space 3} .1064906
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}_cons {c |}{col 21}{res}{space 2}-.0550388{col 33}{space 2} .1086046{col 44}{space 1}   -0.51{col 53}{space 3}0.612{col 61}{space 4} -.268196{col 74}{space 3} .1581185
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. * outcome: perceived party agreement
. eststo thomas_sen_perception_3_d:  reg sen_perceived_party_agreement sen_actual_thomas_agreement sen_actual_party_agreement if dem_lean==1,  cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     2,584
                                                {txt}F(2, 1291)        =  {res}   139.40
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1218
                                                {txt}Root MSE          =    {res} .50705

{txt}{ralign 85:(Std. Err. adjusted for {res:1,292} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_par~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0484203{col 33}{space 2} .0113977{col 44}{space 1}    4.25{col 53}{space 3}0.000{col 61}{space 4} .0260602{col 74}{space 3} .0707804
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1814082{col 33}{space 2} .0111083{col 44}{space 1}   16.33{col 53}{space 3}0.000{col 61}{space 4} .1596158{col 74}{space 3} .2032005
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0919414{col 33}{space 2} .0117066{col 44}{space 1}    7.85{col 53}{space 3}0.000{col 61}{space 4} .0689754{col 74}{space 3} .1149074
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_sen_perception_4_d:  reg sen_perceived_party_agreement sen_actual_thomas_agreement sen_actual_party_agreement  `controls' if dem_lean==1 ,  cluster(case_id)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}
{p 0 6 2}note: sen_actual_ideo_agreement omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     1,744
                                                {txt}F(13, 871)        =  {res}    22.59
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1633
                                                {txt}Root MSE          =    {res} .52998

{txt}{ralign 85:(Std. Err. adjusted for {res:872} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_par~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0516106{col 33}{space 2} .0140697{col 44}{space 1}    3.67{col 53}{space 3}0.000{col 61}{space 4} .0239961{col 74}{space 3}  .079225
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2043095{col 33}{space 2} .0141463{col 44}{space 1}   14.44{col 53}{space 3}0.000{col 61}{space 4} .1765447{col 74}{space 3} .2320743
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0189521{col 33}{space 2} .0508953{col 44}{space 1}    0.37{col 53}{space 3}0.710{col 61}{space 4}-.0809395{col 74}{space 3} .1188438
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0076454{col 33}{space 2} .0511904{col 44}{space 1}   -0.15{col 53}{space 3}0.881{col 61}{space 4}-.1081164{col 74}{space 3} .0928257
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0876112{col 33}{space 2} .0590162{col 44}{space 1}    1.48{col 53}{space 3}0.138{col 61}{space 4}-.0282194{col 74}{space 3} .2034417
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} -.021741{col 33}{space 2} .0297131{col 44}{space 1}   -0.73{col 53}{space 3}0.465{col 61}{space 4}-.0800586{col 74}{space 3} .0365766
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0168223{col 33}{space 2} .0381212{col 44}{space 1}   -0.44{col 53}{space 3}0.659{col 61}{space 4}-.0916425{col 74}{space 3} .0579978
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0332272{col 33}{space 2}  .064201{col 44}{space 1}   -0.52{col 53}{space 3}0.605{col 61}{space 4}-.1592341{col 74}{space 3} .0927796
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0202102{col 33}{space 2}  .036028{col 44}{space 1}    0.56{col 53}{space 3}0.575{col 61}{space 4}-.0505016{col 74}{space 3} .0909221
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0474077{col 33}{space 2} .0397978{col 44}{space 1}    1.19{col 53}{space 3}0.234{col 61}{space 4} -.030703{col 74}{space 3} .1255185
{txt}{space 17}4  {c |}{col 21}{res}{space 2}  .012929{col 33}{space 2} .0506655{col 44}{space 1}    0.26{col 53}{space 3}0.799{col 61}{space 4}-.0865118{col 74}{space 3} .1123698
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2} .0378793{col 33}{space 2} .0112071{col 44}{space 1}    3.38{col 53}{space 3}0.001{col 61}{space 4} .0158832{col 74}{space 3} .0598753
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0718266{col 33}{space 2} .0390798{col 44}{space 1}    1.84{col 53}{space 3}0.066{col 61}{space 4} -.004875{col 74}{space 3} .1485282
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}_cons {c |}{col 21}{res}{space 2} .0335516{col 33}{space 2} .0619266{col 44}{space 1}    0.54{col 53}{space 3}0.588{col 61}{space 4}-.0879911{col 74}{space 3} .1550943
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *Make Table 3, thomas portion (top)
. esttab thomas_sen_perception_1_d thomas_sen_perception_2_d thomas_sen_perception_3_d thomas_sen_perception_4_d  using  "table_A11_thomas.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(OLS Regressions of voters' perceptions of Clarence Thomas vote and party of senator, Democrats only\label{c -(}table_A11_thomas{c )-})
{res}{txt}(output written to {browse  `"table_A11_thomas.tex"'})

{com}.         use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. *outcome: perceived nominee agreement (
. eststo nominee_sen_perception_1_d:  reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement if dem_lean==1,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     7,162
                                                {txt}F(2, 3652)        =  {res}  1313.86
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3757
                                                {txt}Root MSE          =    {res} .53306

{txt}{ralign 85:(Std. Err. adjusted for {res:3,653} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2}  .330798{col 33}{space 2} .0094887{col 44}{space 1}   34.86{col 53}{space 3}0.000{col 61}{space 4} .3121944{col 74}{space 3} .3494016
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1566993{col 33}{space 2} .0096223{col 44}{space 1}   16.29{col 53}{space 3}0.000{col 61}{space 4} .1378337{col 74}{space 3} .1755649
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0772495{col 33}{space 2} .0083345{col 44}{space 1}    9.27{col 53}{space 3}0.000{col 61}{space 4} .0609088{col 74}{space 3} .0935902
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo nominee_sen_perception_2_d:  reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement `controls' if dem_lean==1,  cluster(case_id_new)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     6,561
                                                {txt}F(13, 3283)       =  {res}   220.98
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4118
                                                {txt}Root MSE          =    {res} .52472

{txt}{ralign 85:(Std. Err. adjusted for {res:3,284} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .3083669{col 33}{space 2} .0111101{col 44}{space 1}   27.76{col 53}{space 3}0.000{col 61}{space 4} .2865835{col 74}{space 3} .3301502
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1415575{col 33}{space 2} .0110859{col 44}{space 1}   12.77{col 53}{space 3}0.000{col 61}{space 4} .1198214{col 74}{space 3} .1632936
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0628339{col 33}{space 2} .0466678{col 44}{space 1}   -1.35{col 53}{space 3}0.178{col 61}{space 4}-.1543349{col 74}{space 3} .0286671
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0567233{col 33}{space 2} .0465795{col 44}{space 1}   -1.22{col 53}{space 3}0.223{col 61}{space 4}-.1480512{col 74}{space 3} .0346046
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.040738{col 33}{space 2} .0479102{col 44}{space 1}   -0.85{col 53}{space 3}0.395{col 61}{space 4}-.1346748{col 74}{space 3} .0531988
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} -.056372{col 33}{space 2} .0165218{col 44}{space 1}   -3.41{col 53}{space 3}0.001{col 61}{space 4} -.088766{col 74}{space 3}-.0239779
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0053199{col 33}{space 2} .0199885{col 44}{space 1}    0.27{col 53}{space 3}0.790{col 61}{space 4}-.0338712{col 74}{space 3}  .044511
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0279665{col 33}{space 2} .0285902{col 44}{space 1}   -0.98{col 53}{space 3}0.328{col 61}{space 4} -.084023{col 74}{space 3}   .02809
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}  .056402{col 33}{space 2} .0268916{col 44}{space 1}    2.10{col 53}{space 3}0.036{col 61}{space 4}  .003676{col 74}{space 3} .1091279
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0761985{col 33}{space 2} .0247048{col 44}{space 1}    3.08{col 53}{space 3}0.002{col 61}{space 4} .0277601{col 74}{space 3} .1246369
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .1056107{col 33}{space 2} .0304396{col 44}{space 1}    3.47{col 53}{space 3}0.001{col 61}{space 4} .0459281{col 74}{space 3} .1652932
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2} .0461208{col 33}{space 2} .0058663{col 44}{space 1}    7.86{col 53}{space 3}0.000{col 61}{space 4} .0346189{col 74}{space 3} .0576228
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1980466{col 33}{space 2} .0265335{col 44}{space 1}    7.46{col 53}{space 3}0.000{col 61}{space 4} .1460227{col 74}{space 3} .2500706
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0185832{col 33}{space 2} .0494224{col 44}{space 1}    0.38{col 53}{space 3}0.707{col 61}{space 4}-.0783186{col 74}{space 3}  .115485
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. * outcome: actual nominee agreement
. eststo nominee_sen_perception_3_d:  reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement if dem_lean==1,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    58,375
                                                {txt}F(2, 29986)       =  {res} 29217.96
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.5690
                                                {txt}Root MSE          =    {res}  .5698

{txt}{ralign 85:(Std. Err. adjusted for {res:29,987} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1386162{col 33}{space 2} .0041072{col 44}{space 1}   33.75{col 53}{space 3}0.000{col 61}{space 4} .1305658{col 74}{space 3} .1466666
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .6083582{col 33}{space 2} .0041742{col 44}{space 1}  145.74{col 53}{space 3}0.000{col 61}{space 4} .6001766{col 74}{space 3} .6165399
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0211966{col 33}{space 2} .0028409{col 44}{space 1}    7.46{col 53}{space 3}0.000{col 61}{space 4} .0156283{col 74}{space 3} .0267648
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo nominee_sen_perception_4_d:  reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement `controls' if dem_lean==1,  cluster(case_id_new)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     6,474
                                                {txt}F(13, 3282)       =  {res}   504.04
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.5865
                                                {txt}Root MSE          =    {res} .55918

{txt}{ralign 85:(Std. Err. adjusted for {res:3,283} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1029834{col 33}{space 2} .0125875{col 44}{space 1}    8.18{col 53}{space 3}0.000{col 61}{space 4} .0783033{col 74}{space 3} .1276636
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .6160929{col 33}{space 2} .0129093{col 44}{space 1}   47.72{col 53}{space 3}0.000{col 61}{space 4} .5907818{col 74}{space 3}  .641404
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0190219{col 33}{space 2}  .057843{col 44}{space 1}   -0.33{col 53}{space 3}0.742{col 61}{space 4} -.132434{col 74}{space 3} .0943901
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0747572{col 33}{space 2} .0579871{col 44}{space 1}   -1.29{col 53}{space 3}0.197{col 61}{space 4}-.1884518{col 74}{space 3} .0389374
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0781491{col 33}{space 2} .0594189{col 44}{space 1}   -1.32{col 53}{space 3}0.189{col 61}{space 4} -.194651{col 74}{space 3} .0383529
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0125923{col 33}{space 2} .0156464{col 44}{space 1}   -0.80{col 53}{space 3}0.421{col 61}{space 4}-.0432699{col 74}{space 3} .0180853
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0253552{col 33}{space 2} .0211872{col 44}{space 1}    1.20{col 53}{space 3}0.232{col 61}{space 4}-.0161862{col 74}{space 3} .0668966
{txt}{space 17}3  {c |}{col 21}{res}{space 2} -.048418{col 33}{space 2} .0307585{col 44}{space 1}   -1.57{col 53}{space 3}0.116{col 61}{space 4}-.1087258{col 74}{space 3} .0118898
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0142598{col 33}{space 2} .0322021{col 44}{space 1}    0.44{col 53}{space 3}0.658{col 61}{space 4}-.0488784{col 74}{space 3} .0773979
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0190804{col 33}{space 2} .0293907{col 44}{space 1}    0.65{col 53}{space 3}0.516{col 61}{space 4}-.0385455{col 74}{space 3} .0767063
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0314653{col 33}{space 2} .0314743{col 44}{space 1}    1.00{col 53}{space 3}0.318{col 61}{space 4}-.0302459{col 74}{space 3} .0931766
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2} .0459716{col 33}{space 2} .0076959{col 44}{space 1}    5.97{col 53}{space 3}0.000{col 61}{space 4} .0308822{col 74}{space 3} .0610609
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1193266{col 33}{space 2} .0269408{col 44}{space 1}    4.43{col 53}{space 3}0.000{col 61}{space 4} .0665041{col 74}{space 3}  .172149
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0245944{col 33}{space 2} .0604636{col 44}{space 1}    0.41{col 53}{space 3}0.684{col 61}{space 4}-.0939558{col 74}{space 3} .1431446
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab nominee_sen_perception_1_d nominee_sen_perception_2_d nominee_sen_perception_3_d nominee_sen_perception_4_d using  "table_A11_soto_kagan.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)  title(OLS Regressions of voters' perceptions of Sotomayor/Kagan vote and party of senator, Democrats only\label{c -(}table_03_sk{c )-})
{res}{txt}(output written to {browse  `"table_A11_soto_kagan.tex"'})

{com}.         *REPUBLICANS
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_ideo_agreement
{txt}
{com}. *outcome: perceived thomas agreement 
. eststo thomas_sen_perception_1_g:  reg sen_perceived_thomas_agreement sen_actual_thomas_agreement sen_actual_party_agreement if gop_lean==1,  cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     2,138
                                                {txt}F(2, 1068)        =  {res}    16.18
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0223
                                                {txt}Root MSE          =    {res}  .8053

{txt}{ralign 85:(Std. Err. adjusted for {res:1,069} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_tho~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .1189629{col 33}{space 2}  .024254{col 44}{space 1}    4.90{col 53}{space 3}0.000{col 61}{space 4}  .071372{col 74}{space 3} .1665538
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0349899{col 33}{space 2} .0204417{col 44}{space 1}    1.71{col 53}{space 3}0.087{col 61}{space 4}-.0051206{col 74}{space 3} .0751004
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0884032{col 33}{space 2} .0197657{col 44}{space 1}    4.47{col 53}{space 3}0.000{col 61}{space 4} .0496192{col 74}{space 3} .1271871
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_sen_perception_2_g:  reg sen_perceived_thomas_agreement sen_actual_thomas_agreement sen_actual_party_agreement  `controls' if gop_lean==1, cluster(case_id)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}
{p 0 6 2}note: sen_actual_ideo_agreement omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     1,624
                                                {txt}F(13, 811)        =  {res}     3.54
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0378
                                                {txt}Root MSE          =    {res} .82907

{txt}{ralign 85:(Std. Err. adjusted for {res:812} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_tho~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .1317444{col 33}{space 2} .0281524{col 44}{space 1}    4.68{col 53}{space 3}0.000{col 61}{space 4} .0764843{col 74}{space 3} .1870044
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0208668{col 33}{space 2} .0267301{col 44}{space 1}    0.78{col 53}{space 3}0.435{col 61}{space 4}-.0316015{col 74}{space 3} .0733352
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .2710769{col 33}{space 2} .1254931{col 44}{space 1}    2.16{col 53}{space 3}0.031{col 61}{space 4} .0247474{col 74}{space 3} .5174065
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .2429638{col 33}{space 2} .1281812{col 44}{space 1}    1.90{col 53}{space 3}0.058{col 61}{space 4}-.0086421{col 74}{space 3} .4945698
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .2954142{col 33}{space 2} .1304717{col 44}{space 1}    2.26{col 53}{space 3}0.024{col 61}{space 4} .0393122{col 74}{space 3} .5515162
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0780282{col 33}{space 2} .0470882{col 44}{space 1}   -1.66{col 53}{space 3}0.098{col 61}{space 4}-.1704573{col 74}{space 3}  .014401
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1644119{col 33}{space 2} .2468077{col 44}{space 1}    0.67{col 53}{space 3}0.506{col 61}{space 4}-.3200454{col 74}{space 3} .6488692
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0964457{col 33}{space 2} .1263151{col 44}{space 1}   -0.76{col 53}{space 3}0.445{col 61}{space 4}-.3443887{col 74}{space 3} .1514973
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0345446{col 33}{space 2} .0622611{col 44}{space 1}   -0.55{col 53}{space 3}0.579{col 61}{space 4}-.1567565{col 74}{space 3} .0876674
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0870791{col 33}{space 2} .0723347{col 44}{space 1}   -1.20{col 53}{space 3}0.229{col 61}{space 4}-.2290644{col 74}{space 3} .0549061
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0576101{col 33}{space 2} .0837203{col 44}{space 1}   -0.69{col 53}{space 3}0.492{col 61}{space 4}-.2219442{col 74}{space 3} .1067239
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0091605{col 33}{space 2} .0204721{col 44}{space 1}   -0.45{col 53}{space 3}0.655{col 61}{space 4}-.0493451{col 74}{space 3} .0310242
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0954304{col 33}{space 2} .0729004{col 44}{space 1}    1.31{col 53}{space 3}0.191{col 61}{space 4}-.0476654{col 74}{space 3} .2385262
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}_cons {c |}{col 21}{res}{space 2} -.151476{col 33}{space 2} .1346829{col 44}{space 1}   -1.12{col 53}{space 3}0.261{col 61}{space 4}-.4158442{col 74}{space 3} .1128923
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. * outcome: perceived party agreement
. eststo thomas_sen_perception_3_g:  reg sen_perceived_party_agreement sen_actual_thomas_agreement sen_actual_party_agreement if gop_lean==1,  cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     2,138
                                                {txt}F(2, 1068)        =  {res}   127.16
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1244
                                                {txt}Root MSE          =    {res} .54291

{txt}{ralign 85:(Std. Err. adjusted for {res:1,069} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_par~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2}  .008025{col 33}{space 2} .0138219{col 44}{space 1}    0.58{col 53}{space 3}0.562{col 61}{space 4}-.0190962{col 74}{space 3} .0351463
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2041155{col 33}{space 2} .0131045{col 44}{space 1}   15.58{col 53}{space 3}0.000{col 61}{space 4} .1784019{col 74}{space 3}  .229829
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0883931{col 33}{space 2} .0134498{col 44}{space 1}   -6.57{col 53}{space 3}0.000{col 61}{space 4}-.1147841{col 74}{space 3} -.062002
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_sen_perception_4_g:  reg sen_perceived_party_agreement sen_actual_thomas_agreement sen_actual_party_agreement  `controls' if gop_lean==1 ,  cluster(case_id)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}
{p 0 6 2}note: sen_actual_ideo_agreement omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     1,624
                                                {txt}F(13, 811)        =  {res}    22.23
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1571
                                                {txt}Root MSE          =    {res} .56702

{txt}{ralign 85:(Std. Err. adjusted for {res:812} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perceived_par~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0137073{col 33}{space 2} .0164111{col 44}{space 1}    0.84{col 53}{space 3}0.404{col 61}{space 4} -.018506{col 74}{space 3} .0459205
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2236255{col 33}{space 2} .0171426{col 44}{space 1}   13.04{col 53}{space 3}0.000{col 61}{space 4} .1899764{col 74}{space 3} .2572747
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} -.116308{col 33}{space 2} .0590923{col 44}{space 1}   -1.97{col 53}{space 3}0.049{col 61}{space 4}-.2322999{col 74}{space 3} -.000316
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0292386{col 33}{space 2} .0623876{col 44}{space 1}   -0.47{col 53}{space 3}0.639{col 61}{space 4}-.1516989{col 74}{space 3} .0932216
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.1077343{col 33}{space 2} .0668098{col 44}{space 1}   -1.61{col 53}{space 3}0.107{col 61}{space 4}-.2388748{col 74}{space 3} .0234062
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0309188{col 33}{space 2} .0317358{col 44}{space 1}    0.97{col 53}{space 3}0.330{col 61}{space 4}-.0313752{col 74}{space 3} .0932128
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} -.173953{col 33}{space 2} .1155114{col 44}{space 1}   -1.51{col 53}{space 3}0.132{col 61}{space 4}-.4006895{col 74}{space 3} .0527835
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .1529934{col 33}{space 2} .0602593{col 44}{space 1}    2.54{col 53}{space 3}0.011{col 61}{space 4} .0347107{col 74}{space 3} .2712761
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0148459{col 33}{space 2} .0386513{col 44}{space 1}   -0.38{col 53}{space 3}0.701{col 61}{space 4}-.0907142{col 74}{space 3} .0610224
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  -.05463{col 33}{space 2} .0467256{col 44}{space 1}   -1.17{col 53}{space 3}0.243{col 61}{space 4}-.1463473{col 74}{space 3} .0370874
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0853542{col 33}{space 2} .0559704{col 44}{space 1}   -1.52{col 53}{space 3}0.128{col 61}{space 4}-.1952181{col 74}{space 3} .0245097
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0256948{col 33}{space 2} .0124295{col 44}{space 1}   -2.07{col 53}{space 3}0.039{col 61}{space 4}-.0500926{col 74}{space 3} -.001297
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0275994{col 33}{space 2} .0468396{col 44}{space 1}    0.59{col 53}{space 3}0.556{col 61}{space 4}-.0643417{col 74}{space 3} .1195405
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}_cons {c |}{col 21}{res}{space 2} -.024087{col 33}{space 2} .0689403{col 44}{space 1}   -0.35{col 53}{space 3}0.727{col 61}{space 4}-.1594095{col 74}{space 3} .1112355
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *Make Table 3, thomas portion (top)
. esttab thomas_sen_perception_1_g thomas_sen_perception_2_g thomas_sen_perception_3_g thomas_sen_perception_4_g  using  "table_A12_thomas.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(OLS Regressions of voters' perceptions of Clarence Thomas vote and party of senator, Democrats only\label{c -(}table_A11_thomas{c )-})
{res}{txt}(output written to {browse  `"table_A12_thomas.tex"'})

{com}.         use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. *outcome: perceived nominee agreement (
. eststo nominee_sen_perception_1_g:  reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement if gop_lean==1,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     6,700
                                                {txt}F(2, 3418)        =  {res}  2357.10
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.5194
                                                {txt}Root MSE          =    {res} .55011

{txt}{ralign 85:(Std. Err. adjusted for {res:3,419} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .4883119{col 33}{space 2} .0123526{col 44}{space 1}   39.53{col 53}{space 3}0.000{col 61}{space 4} .4640926{col 74}{space 3} .5125312
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1304077{col 33}{space 2} .0123109{col 44}{space 1}   10.59{col 53}{space 3}0.000{col 61}{space 4} .1062702{col 74}{space 3} .1545452
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0908596{col 33}{space 2} .0085192{col 44}{space 1}  -10.67{col 53}{space 3}0.000{col 61}{space 4}-.1075628{col 74}{space 3}-.0741564
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo nominee_sen_perception_2_g:  reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement `controls' if gop_lean==1,  cluster(case_id_new)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     6,277
                                                {txt}F(13, 3140)       =  {res}   388.71
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.5372
                                                {txt}Root MSE          =    {res} .54247

{txt}{ralign 85:(Std. Err. adjusted for {res:3,141} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2}  .465758{col 33}{space 2} .0132471{col 44}{space 1}   35.16{col 53}{space 3}0.000{col 61}{space 4} .4397841{col 74}{space 3} .4917319
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0760281{col 33}{space 2} .0148302{col 44}{space 1}    5.13{col 53}{space 3}0.000{col 61}{space 4} .0469503{col 74}{space 3}  .105106
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0841275{col 33}{space 2} .0571442{col 44}{space 1}   -1.47{col 53}{space 3}0.141{col 61}{space 4}-.1961712{col 74}{space 3} .0279162
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0838398{col 33}{space 2} .0574209{col 44}{space 1}   -1.46{col 53}{space 3}0.144{col 61}{space 4} -.196426{col 74}{space 3} .0287464
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.1086412{col 33}{space 2} .0585316{col 44}{space 1}   -1.86{col 53}{space 3}0.064{col 61}{space 4}-.2234053{col 74}{space 3} .0061229
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0291772{col 33}{space 2} .0172236{col 44}{space 1}    1.69{col 53}{space 3}0.090{col 61}{space 4}-.0045934{col 74}{space 3} .0629479
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0882008{col 33}{space 2} .0557722{col 44}{space 1}    1.58{col 53}{space 3}0.114{col 61}{space 4}-.0211528{col 74}{space 3} .1975544
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0275001{col 33}{space 2} .0362106{col 44}{space 1}   -0.76{col 53}{space 3}0.448{col 61}{space 4} -.098499{col 74}{space 3} .0434988
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0657443{col 33}{space 2} .0423637{col 44}{space 1}   -1.55{col 53}{space 3}0.121{col 61}{space 4}-.1488078{col 74}{space 3} .0173191
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.1168149{col 33}{space 2} .0392494{col 44}{space 1}   -2.98{col 53}{space 3}0.003{col 61}{space 4} -.193772{col 74}{space 3}-.0398577
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.1305414{col 33}{space 2} .0411004{col 44}{space 1}   -3.18{col 53}{space 3}0.002{col 61}{space 4}-.2111277{col 74}{space 3}-.0499551
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0106457{col 33}{space 2} .0093586{col 44}{space 1}   -1.14{col 53}{space 3}0.255{col 61}{space 4}-.0289953{col 74}{space 3}  .007704
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2519064{col 33}{space 2}  .030207{col 44}{space 1}    8.34{col 53}{space 3}0.000{col 61}{space 4}  .192679{col 74}{space 3} .3111338
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0034182{col 33}{space 2} .0673321{col 44}{space 1}    0.05{col 53}{space 3}0.960{col 61}{space 4}-.1286011{col 74}{space 3} .1354375
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. * outcome: actual nominee agreement
. eststo nominee_sen_perception_3_g:  reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement if gop_lean==1,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    56,571
                                                {txt}F(2, 28860)       =  {res} 63554.24
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7372
                                                {txt}Root MSE          =    {res} .47652

{txt}{ralign 85:(Std. Err. adjusted for {res:28,861} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .0978619{col 33}{space 2} .0038964{col 44}{space 1}   25.12{col 53}{space 3}0.000{col 61}{space 4} .0902247{col 74}{space 3}  .105499
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .7484891{col 33}{space 2} .0038976{col 44}{space 1}  192.04{col 53}{space 3}0.000{col 61}{space 4} .7408496{col 74}{space 3} .7561286
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0113815{col 33}{space 2} .0022103{col 44}{space 1}   -5.15{col 53}{space 3}0.000{col 61}{space 4}-.0157138{col 74}{space 3}-.0070493
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo nominee_sen_perception_4_g:  reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement `controls' if gop_lean==1,  cluster(case_id_new)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     6,277
                                                {txt}F(13, 3168)       =  {res}  1188.65
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7399
                                                {txt}Root MSE          =    {res} .47701

{txt}{ralign 85:(Std. Err. adjusted for {res:3,169} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .0891373{col 33}{space 2} .0114695{col 44}{space 1}    7.77{col 53}{space 3}0.000{col 61}{space 4}  .066649{col 74}{space 3} .1116257
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .6985565{col 33}{space 2} .0143437{col 44}{space 1}   48.70{col 53}{space 3}0.000{col 61}{space 4} .6704327{col 74}{space 3} .7266804
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}  .043006{col 33}{space 2} .0605898{col 44}{space 1}    0.71{col 53}{space 3}0.478{col 61}{space 4}-.0757932{col 74}{space 3} .1618052
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .035328{col 33}{space 2}  .060262{col 44}{space 1}    0.59{col 53}{space 3}0.558{col 61}{space 4}-.0828286{col 74}{space 3} .1534845
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0282459{col 33}{space 2}  .060787{col 44}{space 1}    0.46{col 53}{space 3}0.642{col 61}{space 4}-.0909399{col 74}{space 3} .1474317
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0082954{col 33}{space 2} .0131164{col 44}{space 1}   -0.63{col 53}{space 3}0.527{col 61}{space 4}-.0340129{col 74}{space 3} .0174222
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0039065{col 33}{space 2} .0496593{col 44}{space 1}    0.08{col 53}{space 3}0.937{col 61}{space 4}-.0934612{col 74}{space 3} .1012741
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0210302{col 33}{space 2} .0328763{col 44}{space 1}   -0.64{col 53}{space 3}0.522{col 61}{space 4}-.0854913{col 74}{space 3} .0434308
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} -.013649{col 33}{space 2} .0409947{col 44}{space 1}   -0.33{col 53}{space 3}0.739{col 61}{space 4}-.0940278{col 74}{space 3} .0667298
{txt}{space 17}3  {c |}{col 21}{res}{space 2} -.030663{col 33}{space 2} .0376933{col 44}{space 1}   -0.81{col 53}{space 3}0.416{col 61}{space 4}-.1045688{col 74}{space 3} .0432428
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0336758{col 33}{space 2} .0379556{col 44}{space 1}   -0.89{col 53}{space 3}0.375{col 61}{space 4} -.108096{col 74}{space 3} .0407443
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2} -.008008{col 33}{space 2} .0104577{col 44}{space 1}   -0.77{col 53}{space 3}0.444{col 61}{space 4}-.0285125{col 74}{space 3} .0124964
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1871573{col 33}{space 2} .0298651{col 44}{space 1}    6.27{col 53}{space 3}0.000{col 61}{space 4} .1286004{col 74}{space 3} .2457143
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0797333{col 33}{space 2} .0694246{col 44}{space 1}   -1.15{col 53}{space 3}0.251{col 61}{space 4} -.215855{col 74}{space 3} .0563885
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab nominee_sen_perception_1_g nominee_sen_perception_2_g nominee_sen_perception_3_g nominee_sen_perception_4_g using  "table_A12_soto_kagan.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)  title(OLS Regressions of voters' perceptions of Sotomayor/Kagan vote and party of senator, Republicans only\label{c -(}table_03_sk{c )-})
{res}{txt}(output written to {browse  `"table_A12_soto_kagan.tex"'})

{com}.         
.         
. *Table A-19: Separate results for Sotomayor and Kagan
.         *sotomayor
. 
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. eststo s_perception_sen_cluster_1: reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement if nominee=="sotomayor",  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     5,304
                                                {txt}F(2, 2764)        =  {res}  1307.91
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4246
                                                {txt}Root MSE          =    {res} .56372

{txt}{ralign 85:(Std. Err. adjusted for {res:2,765} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .4003173{col 33}{space 2} .0112919{col 44}{space 1}   35.45{col 53}{space 3}0.000{col 61}{space 4} .3781759{col 74}{space 3} .4224586
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1580401{col 33}{space 2} .0120382{col 44}{space 1}   13.13{col 53}{space 3}0.000{col 61}{space 4} .1344353{col 74}{space 3} .1816449
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0181419{col 33}{space 2} .0093835{col 44}{space 1}   -1.93{col 53}{space 3}0.053{col 61}{space 4}-.0365412{col 74}{space 3} .0002574
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo s_perception_sen_cluster_2: reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement  `controls' if nominee=="sotomayor", cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     4,739
                                                {txt}F(15, 2371)       =  {res}   192.16
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4459
                                                {txt}Root MSE          =    {res} .55823

{txt}{ralign 85:(Std. Err. adjusted for {res:2,372} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .3654569{col 33}{space 2} .0126724{col 44}{space 1}   28.84{col 53}{space 3}0.000{col 61}{space 4} .3406068{col 74}{space 3} .3903071
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1022954{col 33}{space 2} .0147899{col 44}{space 1}    6.92{col 53}{space 3}0.000{col 61}{space 4} .0732929{col 74}{space 3} .1312979
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0030001{col 33}{space 2} .0467229{col 44}{space 1}   -0.06{col 53}{space 3}0.949{col 61}{space 4} -.094622{col 74}{space 3} .0886219
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0010616{col 33}{space 2} .0489012{col 44}{space 1}    0.02{col 53}{space 3}0.983{col 61}{space 4} -.094832{col 74}{space 3} .0969551
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0665155{col 33}{space 2}  .052527{col 44}{space 1}    1.27{col 53}{space 3}0.206{col 61}{space 4}-.0364881{col 74}{space 3}  .169519
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0205928{col 33}{space 2} .0206074{col 44}{space 1}   -1.00{col 53}{space 3}0.318{col 61}{space 4}-.0610032{col 74}{space 3} .0198176
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0220513{col 33}{space 2}  .030427{col 44}{space 1}    0.72{col 53}{space 3}0.469{col 61}{space 4}-.0376149{col 74}{space 3} .0817175
{txt}{space 17}3  {c |}{col 21}{res}{space 2} -.022146{col 33}{space 2} .0328466{col 44}{space 1}   -0.67{col 53}{space 3}0.500{col 61}{space 4}-.0865571{col 74}{space 3}  .042265
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0029631{col 33}{space 2}  .029873{col 44}{space 1}    0.10{col 53}{space 3}0.921{col 61}{space 4}-.0556167{col 74}{space 3} .0615429
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0216291{col 33}{space 2} .0300863{col 44}{space 1}   -0.72{col 53}{space 3}0.472{col 61}{space 4}-.0806272{col 74}{space 3} .0373691
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0134608{col 33}{space 2} .0365384{col 44}{space 1}   -0.37{col 53}{space 3}0.713{col 61}{space 4}-.0851113{col 74}{space 3} .0581898
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1230608{col 33}{space 2} .0334568{col 44}{space 1}    3.68{col 53}{space 3}0.000{col 61}{space 4} .0574532{col 74}{space 3} .1886685
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}-.0164027{col 33}{space 2} .0351965{col 44}{space 1}   -0.47{col 53}{space 3}0.641{col 61}{space 4}-.0854218{col 74}{space 3} .0526164
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0015424{col 33}{space 2} .0082045{col 44}{space 1}   -0.19{col 53}{space 3}0.851{col 61}{space 4}-.0176312{col 74}{space 3} .0145463
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2587026{col 33}{space 2} .0316654{col 44}{space 1}    8.17{col 53}{space 3}0.000{col 61}{space 4} .1966078{col 74}{space 3} .3207973
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.1732096{col 33}{space 2} .0608792{col 44}{space 1}   -2.85{col 53}{space 3}0.004{col 61}{space 4}-.2925915{col 74}{space 3}-.0538277
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo s_perception_sen_cluster_3: reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement if nominee=="sotomayor",  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    25,436
                                                {txt}F(2, 13323)       =  {res} 14246.73
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.6284
                                                {txt}Root MSE          =    {res} .51446

{txt}{ralign 85:(Std. Err. adjusted for {res:13,324} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .0835516{col 33}{space 2} .0047166{col 44}{space 1}   17.71{col 53}{space 3}0.000{col 61}{space 4} .0743064{col 74}{space 3} .0927969
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .6739986{col 33}{space 2} .0055739{col 44}{space 1}  120.92{col 53}{space 3}0.000{col 61}{space 4} .6630729{col 74}{space 3} .6849244
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0075124{col 33}{space 2} .0036873{col 44}{space 1}    2.04{col 53}{space 3}0.042{col 61}{space 4} .0002847{col 74}{space 3}   .01474
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo s_perception_sen_cluster_4: reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement  `controls' if nominee=="sotomayor",  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     4,790
                                                {txt}F(15, 2408)       =  {res}   390.87
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.6312
                                                {txt}Root MSE          =    {res} .51242

{txt}{ralign 85:(Std. Err. adjusted for {res:2,409} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2}   .07558{col 33}{space 2} .0113978{col 44}{space 1}    6.63{col 53}{space 3}0.000{col 61}{space 4} .0532296{col 74}{space 3} .0979304
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .6260075{col 33}{space 2}  .014278{col 44}{space 1}   43.84{col 53}{space 3}0.000{col 61}{space 4} .5980092{col 74}{space 3} .6540059
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0055966{col 33}{space 2} .0516254{col 44}{space 1}    0.11{col 53}{space 3}0.914{col 61}{space 4}-.0956382{col 74}{space 3} .1068313
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0297061{col 33}{space 2} .0537995{col 44}{space 1}   -0.55{col 53}{space 3}0.581{col 61}{space 4}-.1352042{col 74}{space 3}  .075792
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0195941{col 33}{space 2}  .055837{col 44}{space 1}   -0.35{col 53}{space 3}0.726{col 61}{space 4}-.1290876{col 74}{space 3} .0898995
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0145789{col 33}{space 2} .0177804{col 44}{space 1}   -0.82{col 53}{space 3}0.412{col 61}{space 4}-.0494453{col 74}{space 3} .0202876
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0021626{col 33}{space 2} .0286985{col 44}{space 1}    0.08{col 53}{space 3}0.940{col 61}{space 4}-.0541137{col 74}{space 3} .0584388
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0215471{col 33}{space 2} .0283414{col 44}{space 1}   -0.76{col 53}{space 3}0.447{col 61}{space 4}-.0771231{col 74}{space 3}  .034029
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0321599{col 33}{space 2} .0298248{col 44}{space 1}    1.08{col 53}{space 3}0.281{col 61}{space 4}-.0263251{col 74}{space 3} .0906449
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0177294{col 33}{space 2} .0286403{col 44}{space 1}    0.62{col 53}{space 3}0.536{col 61}{space 4}-.0384327{col 74}{space 3} .0738916
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.001593{col 33}{space 2} .0314707{col 44}{space 1}   -0.05{col 53}{space 3}0.960{col 61}{space 4}-.0633055{col 74}{space 3} .0601195
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}-.0008965{col 33}{space 2} .0210792{col 44}{space 1}   -0.04{col 53}{space 3}0.966{col 61}{space 4}-.0422317{col 74}{space 3} .0404388
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}-.0487086{col 33}{space 2} .0222283{col 44}{space 1}   -2.19{col 53}{space 3}0.029{col 61}{space 4}-.0922972{col 74}{space 3}  -.00512
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0161288{col 33}{space 2} .0082062{col 44}{space 1}    1.97{col 53}{space 3}0.049{col 61}{space 4} .0000369{col 74}{space 3} .0322207
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1832817{col 33}{space 2} .0310796{col 44}{space 1}    5.90{col 53}{space 3}0.000{col 61}{space 4} .1223361{col 74}{space 3} .2442272
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0543971{col 33}{space 2} .0599304{col 44}{space 1}   -0.91{col 53}{space 3}0.364{col 61}{space 4}-.1719176{col 74}{space 3} .0631235
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. esttab s_perception_sen_cluster*  using  "table_A_19_soto.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex) ///
>         title(OLS regressions of voters' perceptions of nominee vote and party of senator, Sotomayor and Kagan separately\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A_19_soto.tex"'})

{com}. eststo k_perception_sen_cluster_1: reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement if nominee=="kagan",  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    10,499
                                                {txt}F(2, 5282)        =  {res}  3221.23
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4896
                                                {txt}Root MSE          =    {res}  .5423

{txt}{ralign 85:(Std. Err. adjusted for {res:5,283} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .4240022{col 33}{space 2} .0087845{col 44}{space 1}   48.27{col 53}{space 3}0.000{col 61}{space 4} .4067809{col 74}{space 3} .4412235
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1649461{col 33}{space 2} .0090351{col 44}{space 1}   18.26{col 53}{space 3}0.000{col 61}{space 4} .1472337{col 74}{space 3} .1826586
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  -.02621{col 33}{space 2} .0064059{col 44}{space 1}   -4.09{col 53}{space 3}0.000{col 61}{space 4}-.0387682{col 74}{space 3}-.0136517
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo k_perception_sen_cluster_2: reg sen_perc_nominee_agreement sen_actual_nominee_agreement sen_actual_party_agreement  `controls' if nominee=="kagan", cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     9,717
                                                {txt}F(15, 4863)       =  {res}   496.71
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.5209
                                                {txt}Root MSE          =    {res} .53272

{txt}{ralign 85:(Std. Err. adjusted for {res:4,864} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_nominee_~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .4142516{col 33}{space 2} .0097946{col 44}{space 1}   42.29{col 53}{space 3}0.000{col 61}{space 4} .3950497{col 74}{space 3} .4334534
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2}  .099035{col 33}{space 2} .0107136{col 44}{space 1}    9.24{col 53}{space 3}0.000{col 61}{space 4} .0780315{col 74}{space 3} .1200384
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.1244262{col 33}{space 2} .0465331{col 44}{space 1}   -2.67{col 53}{space 3}0.008{col 61}{space 4}-.2156521{col 74}{space 3}-.0332003
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.1421848{col 33}{space 2} .0463742{col 44}{space 1}   -3.07{col 53}{space 3}0.002{col 61}{space 4}-.2330992{col 74}{space 3}-.0512705
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.1557922{col 33}{space 2} .0474463{col 44}{space 1}   -3.28{col 53}{space 3}0.001{col 61}{space 4}-.2488083{col 74}{space 3}-.0627761
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0073905{col 33}{space 2} .0136984{col 44}{space 1}   -0.54{col 53}{space 3}0.590{col 61}{space 4}-.0342456{col 74}{space 3} .0194646
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0105836{col 33}{space 2} .0230402{col 44}{space 1}    0.46{col 53}{space 3}0.646{col 61}{space 4}-.0345856{col 74}{space 3} .0557528
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0090639{col 33}{space 2}   .02792{col 44}{space 1}   -0.32{col 53}{space 3}0.745{col 61}{space 4}-.0637997{col 74}{space 3} .0456719
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}   .02892{col 33}{space 2} .0315898{col 44}{space 1}    0.92{col 53}{space 3}0.360{col 61}{space 4}-.0330102{col 74}{space 3} .0908502
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0175264{col 33}{space 2} .0290994{col 44}{space 1}    0.60{col 53}{space 3}0.547{col 61}{space 4}-.0395215{col 74}{space 3} .0745743
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0179675{col 33}{space 2} .0315968{col 44}{space 1}    0.57{col 53}{space 3}0.570{col 61}{space 4}-.0439765{col 74}{space 3} .0799115
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1050603{col 33}{space 2}  .024392{col 44}{space 1}    4.31{col 53}{space 3}0.000{col 61}{space 4}  .057241{col 74}{space 3} .1528795
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}-.0516532{col 33}{space 2} .0252715{col 44}{space 1}   -2.04{col 53}{space 3}0.041{col 61}{space 4}-.1011968{col 74}{space 3}-.0021096
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0259809{col 33}{space 2}  .005651{col 44}{space 1}    4.60{col 53}{space 3}0.000{col 61}{space 4} .0149023{col 74}{space 3} .0370595
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2462461{col 33}{space 2} .0223948{col 44}{space 1}   11.00{col 53}{space 3}0.000{col 61}{space 4} .2023422{col 74}{space 3}   .29015
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0157575{col 33}{space 2}  .059608{col 44}{space 1}   -0.26{col 53}{space 3}0.792{col 61}{space 4}-.1326161{col 74}{space 3} .1011012
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo k_perception_sen_cluster_3: reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement if nominee=="kagan",  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}   105,122
                                                {txt}F(2, 53329)       =  {res} 84281.47
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.6837
                                                {txt}Root MSE          =    {res} .49344

{txt}{ralign 85:(Std. Err. adjusted for {res:53,330} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1018018{col 33}{space 2} .0026784{col 44}{space 1}   38.01{col 53}{space 3}0.000{col 61}{space 4} .0965521{col 74}{space 3} .1070515
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .7006371{col 33}{space 2} .0029569{col 44}{space 1}  236.95{col 53}{space 3}0.000{col 61}{space 4} .6948416{col 74}{space 3} .7064326
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} -.011971{col 33}{space 2} .0016106{col 44}{space 1}   -7.43{col 53}{space 3}0.000{col 61}{space 4}-.0151278{col 74}{space 3}-.0088143
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo k_perception_sen_cluster_4: reg sen_perc_party_agreement sen_actual_nominee_agreement sen_actual_party_agreement  `controls' if nominee=="kagan",  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     9,595
                                                {txt}F(15, 4859)       =  {res}  1246.25
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7034
                                                {txt}Root MSE          =    {res} .48408

{txt}{ralign 85:(Std. Err. adjusted for {res:4,860} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_perc_party_ag~t{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .0797782{col 33}{space 2}  .009159{col 44}{space 1}    8.71{col 53}{space 3}0.000{col 61}{space 4} .0618225{col 74}{space 3} .0977339
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .6924387{col 33}{space 2} .0109871{col 44}{space 1}   63.02{col 53}{space 3}0.000{col 61}{space 4} .6708989{col 74}{space 3} .7139784
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}  .011256{col 33}{space 2} .0492446{col 44}{space 1}    0.23{col 53}{space 3}0.819{col 61}{space 4}-.0852858{col 74}{space 3} .1077977
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0269462{col 33}{space 2} .0489808{col 44}{space 1}   -0.55{col 53}{space 3}0.582{col 61}{space 4}-.1229708{col 74}{space 3} .0690784
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0406872{col 33}{space 2} .0496322{col 44}{space 1}   -0.82{col 53}{space 3}0.412{col 61}{space 4}-.1379887{col 74}{space 3} .0566143
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0045042{col 33}{space 2} .0106829{col 44}{space 1}   -0.42{col 53}{space 3}0.673{col 61}{space 4}-.0254476{col 74}{space 3} .0164391
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0347995{col 33}{space 2}  .023002{col 44}{space 1}    1.51{col 53}{space 3}0.130{col 61}{space 4}-.0102947{col 74}{space 3} .0798938
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0397119{col 33}{space 2} .0284217{col 44}{space 1}   -1.40{col 53}{space 3}0.162{col 61}{space 4}-.0954313{col 74}{space 3} .0160075
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0288617{col 33}{space 2} .0334847{col 44}{space 1}   -0.86{col 53}{space 3}0.389{col 61}{space 4}-.0945069{col 74}{space 3} .0367835
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0288044{col 33}{space 2} .0310519{col 44}{space 1}   -0.93{col 53}{space 3}0.354{col 61}{space 4}-.0896802{col 74}{space 3} .0320715
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0223912{col 33}{space 2}  .031479{col 44}{space 1}   -0.71{col 53}{space 3}0.477{col 61}{space 4}-.0841042{col 74}{space 3} .0393218
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} -.013411{col 33}{space 2} .0129525{col 44}{space 1}   -1.04{col 53}{space 3}0.301{col 61}{space 4}-.0388038{col 74}{space 3} .0119818
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}  -.03611{col 33}{space 2} .0139415{col 44}{space 1}   -2.59{col 53}{space 3}0.010{col 61}{space 4}-.0634417{col 74}{space 3}-.0087783
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0275837{col 33}{space 2} .0063868{col 44}{space 1}    4.32{col 53}{space 3}0.000{col 61}{space 4} .0150626{col 74}{space 3} .0401048
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1479847{col 33}{space 2} .0200275{col 44}{space 1}    7.39{col 53}{space 3}0.000{col 61}{space 4} .1087218{col 74}{space 3} .1872476
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0072319{col 33}{space 2} .0570471{col 44}{space 1}    0.13{col 53}{space 3}0.899{col 61}{space 4}-.1046062{col 74}{space 3}   .11907
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. esttab k_perception_sen_cluster*  using  "table_A_19_kagan.tex", /// 
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex) ///
>         title(OLS regressions of voters' perceptions of nominee vote and party of senator, Sotomayor and Kagan separately\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A_19_kagan.tex"'})

{com}. 
. *******************************************************************************************
. *Reduced form estimates: actual agreement and voter evaluations
. *******************************************************************************************
. *Table 4
. *THOMAS
. *VOTER APPROVAL
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. eststo thomas_rf_approval_1: reg sen_approval_binary sen_actual_thomas_agreement sen_actual_party_agreement,  cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     3,674
                                                {txt}F(2, 2220)        =  {res}    17.44
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0110
                                                {txt}Root MSE          =    {res} .40061

{txt}{ralign 85:(Std. Err. adjusted for {res:2,221} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0138356{col 33}{space 2}  .007485{col 44}{space 1}    1.85{col 53}{space 3}0.065{col 61}{space 4}-.0008427{col 74}{space 3}  .028514
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0412818{col 33}{space 2} .0073631{col 44}{space 1}    5.61{col 53}{space 3}0.000{col 61}{space 4} .0268424{col 74}{space 3} .0557211
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .7934514{col 33}{space 2} .0071326{col 44}{space 1}  111.24{col 53}{space 3}0.000{col 61}{space 4} .7794642{col 74}{space 3} .8074386
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_rf_approval_2: reg sen_approval_binary sen_actual_thomas_agreement sen_actual_party_agreement `controls',   cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     2,561
                                                {txt}F(15, 1536)       =  {res}     3.31
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0229
                                                {txt}Root MSE          =    {res} .41274

{txt}{ralign 85:(Std. Err. adjusted for {res:1,537} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0145937{col 33}{space 2} .0089954{col 44}{space 1}    1.62{col 53}{space 3}0.105{col 61}{space 4} -.003051{col 74}{space 3} .0322383
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0312729{col 33}{space 2} .0091617{col 44}{space 1}    3.41{col 53}{space 3}0.001{col 61}{space 4} .0133021{col 74}{space 3} .0492438
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0168618{col 33}{space 2} .0395016{col 44}{space 1}   -0.43{col 53}{space 3}0.670{col 61}{space 4}-.0943445{col 74}{space 3} .0606209
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0089895{col 33}{space 2} .0404313{col 44}{space 1}    0.22{col 53}{space 3}0.824{col 61}{space 4} -.070317{col 74}{space 3} .0882959
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0073871{col 33}{space 2} .0433075{col 44}{space 1}   -0.17{col 53}{space 3}0.865{col 61}{space 4}-.0923352{col 74}{space 3} .0775609
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0470429{col 33}{space 2} .0174307{col 44}{space 1}    2.70{col 53}{space 3}0.007{col 61}{space 4} .0128523{col 74}{space 3} .0812334
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0052888{col 33}{space 2} .0406742{col 44}{space 1}    0.13{col 53}{space 3}0.897{col 61}{space 4} -.074494{col 74}{space 3} .0850716
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0486137{col 33}{space 2} .0517147{col 44}{space 1}   -0.94{col 53}{space 3}0.347{col 61}{space 4}-.1500525{col 74}{space 3} .0528251
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0152299{col 33}{space 2}  .024874{col 44}{space 1}   -0.61{col 53}{space 3}0.540{col 61}{space 4}-.0640205{col 74}{space 3} .0335607
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0165748{col 33}{space 2} .0257203{col 44}{space 1}    0.64{col 53}{space 3}0.519{col 61}{space 4}-.0338758{col 74}{space 3} .0670254
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0009804{col 33}{space 2} .0315929{col 44}{space 1}   -0.03{col 53}{space 3}0.975{col 61}{space 4}-.0629501{col 74}{space 3} .0609894
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0706804{col 33}{space 2} .0404625{col 44}{space 1}    1.75{col 53}{space 3}0.081{col 61}{space 4}-.0086871{col 74}{space 3}  .150048
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0687981{col 33}{space 2} .0407272{col 44}{space 1}    1.69{col 53}{space 3}0.091{col 61}{space 4}-.0110888{col 74}{space 3}  .148685
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0211434{col 33}{space 2} .0080721{col 44}{space 1}   -2.62{col 53}{space 3}0.009{col 61}{space 4}-.0369768{col 74}{space 3}  -.00531
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0543717{col 33}{space 2}  .026842{col 44}{space 1}    2.03{col 53}{space 3}0.043{col 61}{space 4} .0017209{col 74}{space 3} .1070225
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .6683188{col 33}{space 2} .0579144{col 44}{space 1}   11.54{col 53}{space 3}0.000{col 61}{space 4} .5547191{col 74}{space 3} .7819184
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. *VOTE CHOICE
. keep if R_had_incumbent_elec==1 // keep only observations with incumbent senators
{txt}(3,544 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_name, "DIXON, Alan John" ,"CRANSTON, Alan" ,"WIRTH, Timothy E." ,"RUDMAN, Warren Bruce" ,"GARN, Edwin Jacob (Jake)" ,"ADAMS, Brockman (Brock)")
{txt}(359 observations deleted)

{com}. *each state has only 1 senator at most, so don't need respondent clustered standard errors for Thomas
. eststo thomas_rf_vc_1: reg R_vote_inc sen_actual_thomas_agreement sen_actual_party_agreement

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,036
{txt}{hline 13}{c +}{hline 34}   F(2, 1033)      = {res}    93.35
{txt}       Model {c |} {res} 39.0386485         2  19.5193243   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 216.007684     1,033  .209107148   {txt}R-squared       ={res}    0.1531
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1514
{txt}       Total {c |} {res} 255.046332     1,035  .246421577   {txt}Root MSE        =   {res} .45728

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2}  .050799{col 33}{space 2} .0155867{col 44}{space 1}    3.26{col 53}{space 3}0.001{col 61}{space 4} .0202138{col 74}{space 3} .0813841
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1879866{col 33}{space 2} .0150444{col 44}{space 1}   12.50{col 53}{space 3}0.000{col 61}{space 4} .1584656{col 74}{space 3} .2175076
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5567206{col 33}{space 2} .0142737{col 44}{space 1}   39.00{col 53}{space 3}0.000{col 61}{space 4} .5287119{col 74}{space 3} .5847293
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_rf_vc_2: reg  R_vote_inc sen_actual_thomas_agreement sen_actual_party_agreement `controls'

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       785
{txt}{hline 13}{c +}{hline 34}   F(15, 769)      = {res}    12.24
{txt}       Model {c |} {res} 37.5207634        15  2.50138423   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 157.123823       769  .204322266   {txt}R-squared       ={res}    0.1928
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1770
{txt}       Total {c |} {res} 194.644586       784  .248271156   {txt}Root MSE        =   {res} .45202

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0445641{col 33}{space 2} .0175543{col 44}{space 1}    2.54{col 53}{space 3}0.011{col 61}{space 4}  .010104{col 74}{space 3} .0790242
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1598608{col 33}{space 2}   .01753{col 44}{space 1}    9.12{col 53}{space 3}0.000{col 61}{space 4} .1254483{col 74}{space 3} .1942732
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0055936{col 33}{space 2} .0774548{col 44}{space 1}   -0.07{col 53}{space 3}0.942{col 61}{space 4}-.1576415{col 74}{space 3} .1464542
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0347327{col 33}{space 2} .0786315{col 44}{space 1}   -0.44{col 53}{space 3}0.659{col 61}{space 4}-.1890907{col 74}{space 3} .1196252
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0745244{col 33}{space 2} .0824758{col 44}{space 1}   -0.90{col 53}{space 3}0.366{col 61}{space 4}-.2364288{col 74}{space 3}   .08738
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0289764{col 33}{space 2} .0327003{col 44}{space 1}   -0.89{col 53}{space 3}0.376{col 61}{space 4}-.0931688{col 74}{space 3} .0352161
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0907814{col 33}{space 2} .0699847{col 44}{space 1}    1.30{col 53}{space 3}0.195{col 61}{space 4}-.0466024{col 74}{space 3} .2281651
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0326897{col 33}{space 2} .0911385{col 44}{space 1}   -0.36{col 53}{space 3}0.720{col 61}{space 4}-.2115995{col 74}{space 3} .1462201
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0024687{col 33}{space 2} .0480599{col 44}{space 1}   -0.05{col 53}{space 3}0.959{col 61}{space 4}-.0968129{col 74}{space 3} .0918755
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0195839{col 33}{space 2} .0498776{col 44}{space 1}    0.39{col 53}{space 3}0.695{col 61}{space 4}-.0783286{col 74}{space 3} .1174963
{txt}{space 17}4  {c |}{col 21}{res}{space 2}  .019464{col 33}{space 2} .0587942{col 44}{space 1}    0.33{col 53}{space 3}0.741{col 61}{space 4}-.0959522{col 74}{space 3} .1348802
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}  .052182{col 33}{space 2} .0700404{col 44}{space 1}    0.75{col 53}{space 3}0.456{col 61}{space 4}-.0853111{col 74}{space 3} .1896751
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0499575{col 33}{space 2} .0694133{col 44}{space 1}    0.72{col 53}{space 3}0.472{col 61}{space 4}-.0863045{col 74}{space 3} .1862194
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0434856{col 33}{space 2} .0193141{col 44}{space 1}    2.25{col 53}{space 3}0.025{col 61}{space 4}  .005571{col 74}{space 3} .0814002
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2572494{col 33}{space 2}  .048094{col 44}{space 1}    5.35{col 53}{space 3}0.000{col 61}{space 4} .1628383{col 74}{space 3} .3516604
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3883072{col 33}{space 2} .1044738{col 44}{space 1}    3.72{col 53}{space 3}0.000{col 61}{space 4} .1832195{col 74}{space 3} .5933948
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab thomas_rf_approval_1  thomas_rf_approval_2 thomas_rf_vc_1   thomas_rf_vc_2  using  "table_04_thomas.tex", /// 
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Actual agreement and Senator Evaluations (Reduced Form)\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_04_thomas.tex"'})

{com}. 
. *SOTO/KAGAN
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *APPROVAL
. eststo sk_rf_approval_1: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}   120,662
                                                {txt}F(2, 63253)       =  {res} 34106.54
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3761
                                                {txt}Root MSE          =    {res} .39495

{txt}{ralign 85:(Std. Err. adjusted for {res:63,254} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1359525{col 33}{space 2} .0020699{col 44}{space 1}   65.68{col 53}{space 3}0.000{col 61}{space 4} .1318955{col 74}{space 3} .1400095
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2166801{col 33}{space 2} .0021132{col 44}{space 1}  102.53{col 53}{space 3}0.000{col 61}{space 4} .2125381{col 74}{space 3}  .220822
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4764512{col 33}{space 2} .0013289{col 44}{space 1}  358.54{col 53}{space 3}0.000{col 61}{space 4} .4738467{col 74}{space 3} .4790558
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_rf_approval_2: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement `controls',   cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    13,366
                                                {txt}F(15, 6929)       =  {res}   604.51
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3916
                                                {txt}Root MSE          =    {res} .38994

{txt}{ralign 85:(Std. Err. adjusted for {res:6,930} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1154246{col 33}{space 2} .0061647{col 44}{space 1}   18.72{col 53}{space 3}0.000{col 61}{space 4} .1033399{col 74}{space 3} .1275093
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1687973{col 33}{space 2} .0068833{col 44}{space 1}   24.52{col 53}{space 3}0.000{col 61}{space 4} .1553039{col 74}{space 3} .1822907
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0258578{col 33}{space 2} .0308079{col 44}{space 1}   -0.84{col 53}{space 3}0.401{col 61}{space 4}-.0862508{col 74}{space 3} .0345352
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0590049{col 33}{space 2} .0309919{col 44}{space 1}   -1.90{col 53}{space 3}0.057{col 61}{space 4}-.1197584{col 74}{space 3} .0017487
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0385748{col 33}{space 2} .0314227{col 44}{space 1}   -1.23{col 53}{space 3}0.220{col 61}{space 4} -.100173{col 74}{space 3} .0230233
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0302789{col 33}{space 2} .0081544{col 44}{space 1}    3.71{col 53}{space 3}0.000{col 61}{space 4} .0142937{col 74}{space 3}  .046264
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0555183{col 33}{space 2}  .014751{col 44}{space 1}    3.76{col 53}{space 3}0.000{col 61}{space 4} .0266018{col 74}{space 3} .0844348
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0456199{col 33}{space 2} .0171611{col 44}{space 1}    2.66{col 53}{space 3}0.008{col 61}{space 4}  .011979{col 74}{space 3} .0792608
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0616878{col 33}{space 2} .0191567{col 44}{space 1}   -3.22{col 53}{space 3}0.001{col 61}{space 4}-.0992409{col 74}{space 3}-.0241347
{txt}{space 17}3  {c |}{col 21}{res}{space 2} -.043745{col 33}{space 2} .0175412{col 44}{space 1}   -2.49{col 53}{space 3}0.013{col 61}{space 4}-.0781312{col 74}{space 3}-.0093589
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0325161{col 33}{space 2} .0184553{col 44}{space 1}   -1.76{col 53}{space 3}0.078{col 61}{space 4}-.0686941{col 74}{space 3} .0036619
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}  .091515{col 33}{space 2} .0164271{col 44}{space 1}    5.57{col 53}{space 3}0.000{col 61}{space 4} .0593128{col 74}{space 3} .1237172
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0630075{col 33}{space 2} .0162384{col 44}{space 1}    3.88{col 53}{space 3}0.000{col 61}{space 4} .0311753{col 74}{space 3} .0948398
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0017354{col 33}{space 2} .0044857{col 44}{space 1}    0.39{col 53}{space 3}0.699{col 61}{space 4}-.0070579{col 74}{space 3} .0105287
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2100934{col 33}{space 2} .0139952{col 44}{space 1}   15.01{col 53}{space 3}0.000{col 61}{space 4} .1826586{col 74}{space 3} .2375282
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .398897{col 33}{space 2} .0373984{col 44}{space 1}   10.67{col 53}{space 3}0.000{col 61}{space 4} .3255847{col 74}{space 3} .4722093
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. *VOTE CHOICE (ONLY KAGAN)
. keep if nominee=="kagan"
{txt}(27,978 observations deleted)

{com}. *keep only respondents with senate incumbents
. keep if R_had_incumbent10_elec==1
{txt}(66,230 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_cces_name, "Christopher Dodd", "George LeMieux" , "Roland Burris" , "Evan Bayh", "Samuel Brownback")
{txt}(9,654 observations deleted)

{com}. drop if inlist(sen_cces_name,  "Jim Bunning" , "Christopher 'Kit' Bond" , "Judd Gregg" , "Byron Dorgan" , "George Voinovich"  , "Arlen Specter" , "Robert Bennett")
{txt}(7,938 observations deleted)

{com}. eststo sk_rf_vc_1: reg R_vote_inc sen_actual_nominee_agreement sen_actual_party_agreement,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    17,518
                                                {txt}F(2, 15673)       =  {res} 44909.66
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7787
                                                {txt}Root MSE          =    {res}  .2339

{txt}{ralign 85:(Std. Err. adjusted for {res:15,674} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1318856{col 33}{space 2} .0052236{col 44}{space 1}   25.25{col 53}{space 3}0.000{col 61}{space 4} .1216468{col 74}{space 3} .1421244
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .3506608{col 33}{space 2} .0051923{col 44}{space 1}   67.53{col 53}{space 3}0.000{col 61}{space 4} .3404833{col 74}{space 3} .3608383
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5051218{col 33}{space 2}  .001993{col 44}{space 1}  253.44{col 53}{space 3}0.000{col 61}{space 4} .5012152{col 74}{space 3} .5090283
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_rf_vc_2: reg R_vote_inc sen_actual_nominee_agreement sen_actual_party_agreement `controls',   cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     1,604
                                                {txt}F(15, 1434)       =  {res}   878.38
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7924
                                                {txt}Root MSE          =    {res}  .2267

{txt}{ralign 85:(Std. Err. adjusted for {res:1,435} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2}  .109397{col 33}{space 2} .0170102{col 44}{space 1}    6.43{col 53}{space 3}0.000{col 61}{space 4} .0760294{col 74}{space 3} .1427646
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .3255497{col 33}{space 2} .0187647{col 44}{space 1}   17.35{col 53}{space 3}0.000{col 61}{space 4} .2887405{col 74}{space 3} .3623589
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0315766{col 33}{space 2} .0794021{col 44}{space 1}   -0.40{col 53}{space 3}0.691{col 61}{space 4}-.1873332{col 74}{space 3} .1241801
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0080028{col 33}{space 2} .0796197{col 44}{space 1}    0.10{col 53}{space 3}0.920{col 61}{space 4}-.1481807{col 74}{space 3} .1641862
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0120213{col 33}{space 2} .0797953{col 44}{space 1}   -0.15{col 53}{space 3}0.880{col 61}{space 4}-.1685493{col 74}{space 3} .1445068
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0175442{col 33}{space 2} .0128979{col 44}{space 1}    1.36{col 53}{space 3}0.174{col 61}{space 4}-.0077566{col 74}{space 3} .0428451
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0046959{col 33}{space 2} .0231117{col 44}{space 1}   -0.20{col 53}{space 3}0.839{col 61}{space 4}-.0500322{col 74}{space 3} .0406405
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0255551{col 33}{space 2} .0371029{col 44}{space 1}    0.69{col 53}{space 3}0.491{col 61}{space 4}-.0472266{col 74}{space 3} .0983368
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0538361{col 33}{space 2} .0379669{col 44}{space 1}   -1.42{col 53}{space 3}0.156{col 61}{space 4}-.1283126{col 74}{space 3} .0206405
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0188243{col 33}{space 2} .0353289{col 44}{space 1}   -0.53{col 53}{space 3}0.594{col 61}{space 4}-.0881263{col 74}{space 3} .0504777
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0440044{col 33}{space 2} .0362424{col 44}{space 1}   -1.21{col 53}{space 3}0.225{col 61}{space 4}-.1150981{col 74}{space 3} .0270893
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1537929{col 33}{space 2} .0435319{col 44}{space 1}    3.53{col 53}{space 3}0.000{col 61}{space 4}    .0684{col 74}{space 3} .2391859
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}  .144456{col 33}{space 2} .0437014{col 44}{space 1}    3.31{col 53}{space 3}0.001{col 61}{space 4} .0587306{col 74}{space 3} .2301815
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0021852{col 33}{space 2} .0097639{col 44}{space 1}   -0.22{col 53}{space 3}0.823{col 61}{space 4}-.0213382{col 74}{space 3} .0169679
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1318607{col 33}{space 2} .0259146{col 44}{space 1}    5.09{col 53}{space 3}0.000{col 61}{space 4} .0810262{col 74}{space 3} .1826952
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3526572{col 33}{space 2} .0959977{col 44}{space 1}    3.67{col 53}{space 3}0.000{col 61}{space 4} .1643463{col 74}{space 3} .5409681
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab sk_rf_approval_1  sk_rf_approval_2 sk_rf_vc_1 sk_rf_vc_2 using  "table_04_soto_kagan.tex", /// 
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Actual agreement and Senator Evaluations (Reduced Form)\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_04_soto_kagan.tex"'})

{com}.         
. *Table A-7,     OLS regression models of reduced form of actual agreement versus evaluation of senators, with standard errors clustered on senators.
. *Thomas
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}.         *approval
. eststo thomas_rf_app_1_sencluster: reg sen_approval_binary sen_actual_thomas_agreement sen_actual_party_agreement,  cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}     3,674
                                                {txt}F(2, 91)          =  {res}     5.51
                                                {txt}Prob > F          = {res}    0.0055
                                                {txt}R-squared         = {res}    0.0110
                                                {txt}Root MSE          =    {res} .40061

{txt}{ralign 85:(Std. Err. adjusted for {res:92} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0138356{col 33}{space 2} .0091504{col 44}{space 1}    1.51{col 53}{space 3}0.134{col 61}{space 4}-.0043405{col 74}{space 3} .0320118
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0412818{col 33}{space 2} .0129368{col 44}{space 1}    3.19{col 53}{space 3}0.002{col 61}{space 4} .0155845{col 74}{space 3} .0669791
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .7934514{col 33}{space 2} .0116416{col 44}{space 1}   68.16{col 53}{space 3}0.000{col 61}{space 4} .7703269{col 74}{space 3}  .816576
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_rf_app_2_sencluster: reg sen_approval_binary sen_actual_thomas_agreement sen_actual_party_agreement `controls',   cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}     2,561
                                                {txt}F(15, 91)         =  {res}     2.51
                                                {txt}Prob > F          = {res}    0.0038
                                                {txt}R-squared         = {res}    0.0229
                                                {txt}Root MSE          =    {res} .41274

{txt}{ralign 85:(Std. Err. adjusted for {res:92} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0145937{col 33}{space 2} .0115543{col 44}{space 1}    1.26{col 53}{space 3}0.210{col 61}{space 4}-.0083576{col 74}{space 3} .0375449
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0312729{col 33}{space 2}  .015289{col 44}{space 1}    2.05{col 53}{space 3}0.044{col 61}{space 4} .0009032{col 74}{space 3} .0616426
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0168618{col 33}{space 2} .0369405{col 44}{space 1}   -0.46{col 53}{space 3}0.649{col 61}{space 4}-.0902395{col 74}{space 3} .0565159
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0089895{col 33}{space 2}  .039205{col 44}{space 1}    0.23{col 53}{space 3}0.819{col 61}{space 4}-.0688864{col 74}{space 3} .0868653
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0073871{col 33}{space 2} .0390172{col 44}{space 1}   -0.19{col 53}{space 3}0.850{col 61}{space 4}  -.08489{col 74}{space 3} .0701157
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0470429{col 33}{space 2} .0166591{col 44}{space 1}    2.82{col 53}{space 3}0.006{col 61}{space 4} .0139517{col 74}{space 3} .0801341
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0052888{col 33}{space 2} .0334064{col 44}{space 1}    0.16{col 53}{space 3}0.875{col 61}{space 4}-.0610689{col 74}{space 3} .0716465
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0486137{col 33}{space 2} .0530336{col 44}{space 1}   -0.92{col 53}{space 3}0.362{col 61}{space 4}-.1539584{col 74}{space 3}  .056731
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0152299{col 33}{space 2} .0241003{col 44}{space 1}   -0.63{col 53}{space 3}0.529{col 61}{space 4}-.0631023{col 74}{space 3} .0326425
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0165748{col 33}{space 2}  .024941{col 44}{space 1}    0.66{col 53}{space 3}0.508{col 61}{space 4}-.0329673{col 74}{space 3} .0661169
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0009804{col 33}{space 2}   .03445{col 44}{space 1}   -0.03{col 53}{space 3}0.977{col 61}{space 4}-.0694111{col 74}{space 3} .0674503
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0706804{col 33}{space 2} .0362762{col 44}{space 1}    1.95{col 53}{space 3}0.054{col 61}{space 4}-.0013779{col 74}{space 3} .1427387
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0687981{col 33}{space 2} .0407536{col 44}{space 1}    1.69{col 53}{space 3}0.095{col 61}{space 4}-.0121539{col 74}{space 3} .1497501
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0211434{col 33}{space 2} .0073483{col 44}{space 1}   -2.88{col 53}{space 3}0.005{col 61}{space 4}-.0357398{col 74}{space 3} -.006547
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0543717{col 33}{space 2} .0285262{col 44}{space 1}    1.91{col 53}{space 3}0.060{col 61}{space 4}-.0022922{col 74}{space 3} .1110355
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .6683188{col 33}{space 2} .0563811{col 44}{space 1}   11.85{col 53}{space 3}0.000{col 61}{space 4} .5563246{col 74}{space 3} .7803129
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *vote choice
. keep if R_had_incumbent_elec==1 // keep only observations with incumbent senators
{txt}(3,544 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_name, "DIXON, Alan John" ,"CRANSTON, Alan" ,"WIRTH, Timothy E." ,"RUDMAN, Warren Bruce" ,"GARN, Edwin Jacob (Jake)" ,"ADAMS, Brockman (Brock)")
{txt}(359 observations deleted)

{com}. eststo thomas_rf_vc_1_sencluster: reg  R_vote_inc sen_actual_thomas_agreement sen_actual_party_agreement,  cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}     1,036
                                                {txt}F(2, 28)          =  {res}    45.98
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1531
                                                {txt}Root MSE          =    {res} .45728

{txt}{ralign 85:(Std. Err. adjusted for {res:29} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2}  .050799{col 33}{space 2} .0213418{col 44}{space 1}    2.38{col 53}{space 3}0.024{col 61}{space 4} .0070822{col 74}{space 3} .0945157
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1879866{col 33}{space 2} .0208069{col 44}{space 1}    9.03{col 53}{space 3}0.000{col 61}{space 4} .1453655{col 74}{space 3} .2306076
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5567206{col 33}{space 2}  .041041{col 44}{space 1}   13.56{col 53}{space 3}0.000{col 61}{space 4} .4726519{col 74}{space 3} .6407892
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_rf_vc_2_sencluster: reg  R_vote_inc sen_actual_thomas_agreement sen_actual_party_agreement `controls',   cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}       785
                                                {txt}F(15, 28)         =  {res}    15.70
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1928
                                                {txt}Root MSE          =    {res} .45202

{txt}{ralign 85:(Std. Err. adjusted for {res:29} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0445641{col 33}{space 2} .0251719{col 44}{space 1}    1.77{col 53}{space 3}0.088{col 61}{space 4}-.0069981{col 74}{space 3} .0961264
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1598608{col 33}{space 2} .0255613{col 44}{space 1}    6.25{col 53}{space 3}0.000{col 61}{space 4} .1075007{col 74}{space 3} .2122208
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0055936{col 33}{space 2}  .095524{col 44}{space 1}   -0.06{col 53}{space 3}0.954{col 61}{space 4}-.2012657{col 74}{space 3} .1900784
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0347327{col 33}{space 2} .0874111{col 44}{space 1}   -0.40{col 53}{space 3}0.694{col 61}{space 4}-.2137863{col 74}{space 3} .1443209
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0745244{col 33}{space 2} .0893908{col 44}{space 1}   -0.83{col 53}{space 3}0.412{col 61}{space 4}-.2576331{col 74}{space 3} .1085844
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0289764{col 33}{space 2} .0369452{col 44}{space 1}   -0.78{col 53}{space 3}0.439{col 61}{space 4}-.1046552{col 74}{space 3} .0467024
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0907814{col 33}{space 2} .0799942{col 44}{space 1}    1.13{col 53}{space 3}0.266{col 61}{space 4}-.0730794{col 74}{space 3} .2546421
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0326897{col 33}{space 2} .1005816{col 44}{space 1}   -0.33{col 53}{space 3}0.748{col 61}{space 4}-.2387218{col 74}{space 3} .1733424
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0024687{col 33}{space 2} .0418338{col 44}{space 1}   -0.06{col 53}{space 3}0.953{col 61}{space 4}-.0881615{col 74}{space 3}  .083224
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0195839{col 33}{space 2} .0578507{col 44}{space 1}    0.34{col 53}{space 3}0.737{col 61}{space 4}-.0989179{col 74}{space 3} .1380857
{txt}{space 17}4  {c |}{col 21}{res}{space 2}  .019464{col 33}{space 2} .0597094{col 44}{space 1}    0.33{col 53}{space 3}0.747{col 61}{space 4}-.1028452{col 74}{space 3} .1417731
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}  .052182{col 33}{space 2} .0844811{col 44}{space 1}    0.62{col 53}{space 3}0.542{col 61}{space 4}-.1208698{col 74}{space 3} .2252338
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0499575{col 33}{space 2} .0949804{col 44}{space 1}    0.53{col 53}{space 3}0.603{col 61}{space 4} -.144601{col 74}{space 3}  .244516
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0434856{col 33}{space 2}  .028606{col 44}{space 1}    1.52{col 53}{space 3}0.140{col 61}{space 4}-.0151112{col 74}{space 3} .1020824
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2572494{col 33}{space 2} .0444136{col 44}{space 1}    5.79{col 53}{space 3}0.000{col 61}{space 4} .1662723{col 74}{space 3} .3482265
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3883072{col 33}{space 2} .1404535{col 44}{space 1}    2.76{col 53}{space 3}0.010{col 61}{space 4} .1006011{col 74}{space 3} .6760132
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab thomas_rf_app_1_sencluster thomas_rf_app_2_sencluster thomas_rf_vc_1_sencluster thomas_rf_vc_2_sencluster  using  "table_A_07_thomas.tex", /// 
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Actual agreement and Senator Evaluations (Reduced Form), with standard errors clustered on senator, Thomas\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A_07_thomas.tex"'})

{com}. *SOTO/KAGAN
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *approval
. eststo sk_rf_app_1_sencluster: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement,  cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}   120,575
                                                {txt}F(2, 100)         =  {res}   403.70
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3764
                                                {txt}Root MSE          =    {res} .39486

{txt}{ralign 85:(Std. Err. adjusted for {res:101} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1359524{col 33}{space 2} .0085753{col 44}{space 1}   15.85{col 53}{space 3}0.000{col 61}{space 4} .1189393{col 74}{space 3} .1529655
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2166798{col 33}{space 2} .0087622{col 44}{space 1}   24.73{col 53}{space 3}0.000{col 61}{space 4} .1992959{col 74}{space 3} .2340638
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .476455{col 33}{space 2}  .008178{col 44}{space 1}   58.26{col 53}{space 3}0.000{col 61}{space 4} .4602301{col 74}{space 3} .4926799
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_rf_app_2_sencluster: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement `controls',   cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}    13,366
                                                {txt}F(15, 100)        =  {res}   170.25
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3916
                                                {txt}Root MSE          =    {res} .38994

{txt}{ralign 85:(Std. Err. adjusted for {res:101} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1154246{col 33}{space 2} .0082891{col 44}{space 1}   13.92{col 53}{space 3}0.000{col 61}{space 4} .0989793{col 74}{space 3} .1318699
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1687973{col 33}{space 2} .0103521{col 44}{space 1}   16.31{col 53}{space 3}0.000{col 61}{space 4}  .148259{col 74}{space 3} .1893355
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0258578{col 33}{space 2} .0266725{col 44}{space 1}   -0.97{col 53}{space 3}0.335{col 61}{space 4}-.0787752{col 74}{space 3} .0270596
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0590049{col 33}{space 2} .0274379{col 44}{space 1}   -2.15{col 53}{space 3}0.034{col 61}{space 4}-.1134408{col 74}{space 3}-.0045689
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0385748{col 33}{space 2} .0260311{col 44}{space 1}   -1.48{col 53}{space 3}0.142{col 61}{space 4}-.0902197{col 74}{space 3}   .01307
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0302789{col 33}{space 2}  .008061{col 44}{space 1}    3.76{col 53}{space 3}0.000{col 61}{space 4} .0142861{col 74}{space 3} .0462716
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0555183{col 33}{space 2} .0148188{col 44}{space 1}    3.75{col 53}{space 3}0.000{col 61}{space 4} .0261181{col 74}{space 3} .0849184
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0456199{col 33}{space 2} .0196235{col 44}{space 1}    2.32{col 53}{space 3}0.022{col 61}{space 4} .0066873{col 74}{space 3} .0845524
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0616878{col 33}{space 2} .0209578{col 44}{space 1}   -2.94{col 53}{space 3}0.004{col 61}{space 4}-.1032675{col 74}{space 3}-.0201082
{txt}{space 17}3  {c |}{col 21}{res}{space 2} -.043745{col 33}{space 2} .0177541{col 44}{space 1}   -2.46{col 53}{space 3}0.015{col 61}{space 4}-.0789687{col 74}{space 3}-.0085214
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0325161{col 33}{space 2} .0208381{col 44}{space 1}   -1.56{col 53}{space 3}0.122{col 61}{space 4}-.0738583{col 74}{space 3} .0088261
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}  .091515{col 33}{space 2}  .016847{col 44}{space 1}    5.43{col 53}{space 3}0.000{col 61}{space 4} .0580909{col 74}{space 3} .1249391
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0630075{col 33}{space 2} .0172771{col 44}{space 1}    3.65{col 53}{space 3}0.000{col 61}{space 4} .0287303{col 74}{space 3} .0972848
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0017354{col 33}{space 2}  .003848{col 44}{space 1}    0.45{col 53}{space 3}0.653{col 61}{space 4}-.0058989{col 74}{space 3} .0093696
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2100934{col 33}{space 2} .0140389{col 44}{space 1}   14.97{col 53}{space 3}0.000{col 61}{space 4} .1822407{col 74}{space 3} .2379461
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .398897{col 33}{space 2}  .032893{col 44}{space 1}   12.13{col 53}{space 3}0.000{col 61}{space 4} .3336383{col 74}{space 3} .4641558
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *VOTE CHOICE (ONLY KAGAN)
. keep if nominee=="kagan"
{txt}(27,978 observations deleted)

{com}. *keep only respondents with senate incumbents
. keep if R_had_incumbent10_elec==1
{txt}(66,230 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_cces_name, "Christopher Dodd", "George LeMieux" , "Roland Burris" , "Evan Bayh", "Samuel Brownback")
{txt}(9,654 observations deleted)

{com}. drop if inlist(sen_cces_name,  "Jim Bunning" , "Christopher 'Kit' Bond" , "Judd Gregg" , "Byron Dorgan" , "George Voinovich"  , "Arlen Specter" , "Robert Bennett")
{txt}(7,938 observations deleted)

{com}. eststo sk_rf_vc_1_sencluster: reg R_vote_inc sen_actual_nominee_agreement sen_actual_party_agreement,  cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}    17,518
                                                {txt}F(2, 22)          =  {res}  4383.93
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7787
                                                {txt}Root MSE          =    {res}  .2339

{txt}{ralign 85:(Std. Err. adjusted for {res:23} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1318856{col 33}{space 2} .0075381{col 44}{space 1}   17.50{col 53}{space 3}0.000{col 61}{space 4} .1162524{col 74}{space 3} .1475187
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .3506608{col 33}{space 2} .0097376{col 44}{space 1}   36.01{col 53}{space 3}0.000{col 61}{space 4} .3304662{col 74}{space 3} .3708553
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5051218{col 33}{space 2} .0074409{col 44}{space 1}   67.88{col 53}{space 3}0.000{col 61}{space 4} .4896903{col 74}{space 3} .5205532
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_rf_vc_2_sencluster: reg R_vote_inc sen_actual_nominee_agreement sen_actual_party_agreement `controls',   cluster(sen_icpsr)

{txt}Linear regression                               Number of obs     = {res}     1,604
                                                {txt}F(15, 22)         =  {res}  4405.68
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7924
                                                {txt}Root MSE          =    {res}  .2267

{txt}{ralign 85:(Std. Err. adjusted for {res:23} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2}  .109397{col 33}{space 2} .0189163{col 44}{space 1}    5.78{col 53}{space 3}0.000{col 61}{space 4} .0701669{col 74}{space 3} .1486271
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .3255497{col 33}{space 2} .0219818{col 44}{space 1}   14.81{col 53}{space 3}0.000{col 61}{space 4} .2799622{col 74}{space 3} .3711373
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0315766{col 33}{space 2} .0897339{col 44}{space 1}   -0.35{col 53}{space 3}0.728{col 61}{space 4}-.2176733{col 74}{space 3} .1545202
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0080028{col 33}{space 2} .0926228{col 44}{space 1}    0.09{col 53}{space 3}0.932{col 61}{space 4}-.1840852{col 74}{space 3} .2000907
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0120213{col 33}{space 2} .0907584{col 44}{space 1}   -0.13{col 53}{space 3}0.896{col 61}{space 4}-.2002426{col 74}{space 3} .1762001
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0175442{col 33}{space 2} .0130078{col 44}{space 1}    1.35{col 53}{space 3}0.191{col 61}{space 4}-.0094324{col 74}{space 3} .0445208
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0046959{col 33}{space 2} .0400942{col 44}{space 1}   -0.12{col 53}{space 3}0.908{col 61}{space 4}-.0878461{col 74}{space 3} .0784543
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0255551{col 33}{space 2} .0260404{col 44}{space 1}    0.98{col 53}{space 3}0.337{col 61}{space 4}-.0284493{col 74}{space 3} .0795595
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0538361{col 33}{space 2} .0348946{col 44}{space 1}   -1.54{col 53}{space 3}0.137{col 61}{space 4}-.1262031{col 74}{space 3}  .018531
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0188243{col 33}{space 2} .0261263{col 44}{space 1}   -0.72{col 53}{space 3}0.479{col 61}{space 4}-.0730069{col 74}{space 3} .0353583
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0440044{col 33}{space 2} .0254359{col 44}{space 1}   -1.73{col 53}{space 3}0.098{col 61}{space 4}-.0967552{col 74}{space 3} .0087464
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1537929{col 33}{space 2} .0379025{col 44}{space 1}    4.06{col 53}{space 3}0.001{col 61}{space 4} .0751879{col 74}{space 3} .2323979
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}  .144456{col 33}{space 2} .0443054{col 44}{space 1}    3.26{col 53}{space 3}0.004{col 61}{space 4} .0525723{col 74}{space 3} .2363398
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0021852{col 33}{space 2} .0068862{col 44}{space 1}   -0.32{col 53}{space 3}0.754{col 61}{space 4}-.0164663{col 74}{space 3}  .012096
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1318607{col 33}{space 2} .0149955{col 44}{space 1}    8.79{col 53}{space 3}0.000{col 61}{space 4}  .100762{col 74}{space 3} .1629593
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3526572{col 33}{space 2}  .092677{col 44}{space 1}    3.81{col 53}{space 3}0.001{col 61}{space 4} .1604569{col 74}{space 3} .5448575
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab sk_rf_approval_1  sk_rf_approval_2 sk_rf_vc_1 sk_rf_vc_2 using  "table_A_07_soto_kagan.tex", /// 
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Actual agreement and Senator Evaluations (Reduced Form), with standard errors clustered on senator, Sotomayor and Kagan\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A_07_soto_kagan.tex"'})

{com}. 
. *Table A-13, separate results for Democrats and Republicans
.         *Democrats
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. eststo thomas_rf_approval_1_d: reg sen_approval_binary sen_actual_thomas_agreement sen_actual_party_agreement if dem_lean==1,  cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     1,752
                                                {txt}F(2, 1055)        =  {res}     9.56
                                                {txt}Prob > F          = {res}    0.0001
                                                {txt}R-squared         = {res}    0.0131
                                                {txt}Root MSE          =    {res} .38649

{txt}{ralign 85:(Std. Err. adjusted for {res:1,056} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0096477{col 33}{space 2} .0102788{col 44}{space 1}    0.94{col 53}{space 3}0.348{col 61}{space 4}-.0105214{col 74}{space 3} .0298168
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0442028{col 33}{space 2} .0103347{col 44}{space 1}    4.28{col 53}{space 3}0.000{col 61}{space 4}  .023924{col 74}{space 3} .0644817
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .8028927{col 33}{space 2}  .010221{col 44}{space 1}   78.55{col 53}{space 3}0.000{col 61}{space 4}  .782837{col 74}{space 3} .8229485
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_rf_approval_2_d: reg sen_approval_binary sen_actual_thomas_agreement sen_actual_party_agreement `controls' if dem_lean==1,   cluster(case_id)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     1,222
                                                {txt}F(13, 736)        =  {res}     2.08
                                                {txt}Prob > F          = {res}    0.0132
                                                {txt}R-squared         = {res}    0.0232
                                                {txt}Root MSE          =    {res} .40217

{txt}{ralign 85:(Std. Err. adjusted for {res:737} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0039984{col 33}{space 2} .0127109{col 44}{space 1}    0.31{col 53}{space 3}0.753{col 61}{space 4}-.0209555{col 74}{space 3} .0289522
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0378796{col 33}{space 2} .0128529{col 44}{space 1}    2.95{col 53}{space 3}0.003{col 61}{space 4}  .012647{col 74}{space 3} .0631123
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0318939{col 33}{space 2}  .053743{col 44}{space 1}   -0.59{col 53}{space 3}0.553{col 61}{space 4}-.1374018{col 74}{space 3} .0736141
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0325972{col 33}{space 2} .0547921{col 44}{space 1}    0.59{col 53}{space 3}0.552{col 61}{space 4}-.0749703{col 74}{space 3} .1401646
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0160033{col 33}{space 2} .0611627{col 44}{space 1}    0.26{col 53}{space 3}0.794{col 61}{space 4}-.1040709{col 74}{space 3} .1360775
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0479375{col 33}{space 2} .0247905{col 44}{space 1}    1.93{col 53}{space 3}0.054{col 61}{space 4}-.0007311{col 74}{space 3} .0966061
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0098837{col 33}{space 2} .0426894{col 44}{space 1}   -0.23{col 53}{space 3}0.817{col 61}{space 4}-.0936911{col 74}{space 3} .0739238
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0349798{col 33}{space 2} .0569514{col 44}{space 1}    0.61{col 53}{space 3}0.539{col 61}{space 4}-.0768268{col 74}{space 3} .1467864
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0110828{col 33}{space 2} .0369611{col 44}{space 1}    0.30{col 53}{space 3}0.764{col 61}{space 4} -.061479{col 74}{space 3} .0836446
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .069545{col 33}{space 2} .0366637{col 44}{space 1}    1.90{col 53}{space 3}0.058{col 61}{space 4}-.0024329{col 74}{space 3}  .141523
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0751508{col 33}{space 2} .0460616{col 44}{space 1}    1.63{col 53}{space 3}0.103{col 61}{space 4} -.015277{col 74}{space 3} .1655785
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0140419{col 33}{space 2} .0108843{col 44}{space 1}   -1.29{col 53}{space 3}0.197{col 61}{space 4}-.0354099{col 74}{space 3}  .007326
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}  .020181{col 33}{space 2} .0364875{col 44}{space 1}    0.55{col 53}{space 3}0.580{col 61}{space 4} -.051451{col 74}{space 3}  .091813
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .7041467{col 33}{space 2} .0619299{col 44}{space 1}   11.37{col 53}{space 3}0.000{col 61}{space 4} .5825663{col 74}{space 3} .8257271
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *VOTE CHOICE
. keep if R_had_incumbent_elec==1 // keep only observations with incumbent senators
{txt}(3,544 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_name, "DIXON, Alan John" ,"CRANSTON, Alan" ,"WIRTH, Timothy E." ,"RUDMAN, Warren Bruce" ,"GARN, Edwin Jacob (Jake)" ,"ADAMS, Brockman (Brock)")
{txt}(359 observations deleted)

{com}. eststo thomas_rf_vc_1_d: reg R_vote_inc sen_actual_thomas_agreement sen_actual_party_agreement if dem_lean==1

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       504
{txt}{hline 13}{c +}{hline 34}   F(2, 501)       = {res}    76.46
{txt}       Model {c |} {res}  28.566675         2  14.2833375   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 93.5920552       501  .186810489   {txt}R-squared       ={res}    0.2338
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2308
{txt}       Total {c |} {res}  122.15873       503  .242860299   {txt}Root MSE        =   {res} .43222

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0699953{col 33}{space 2} .0208921{col 44}{space 1}    3.35{col 53}{space 3}0.001{col 61}{space 4} .0289484{col 74}{space 3} .1110423
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2194643{col 33}{space 2} .0194879{col 44}{space 1}   11.26{col 53}{space 3}0.000{col 61}{space 4} .1811762{col 74}{space 3} .2577523
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5750194{col 33}{space 2} .0193034{col 44}{space 1}   29.79{col 53}{space 3}0.000{col 61}{space 4} .5370939{col 74}{space 3}  .612945
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_rf_vc_2_d: reg  R_vote_inc sen_actual_thomas_agreement sen_actual_party_agreement `controls' if dem_lean==1
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

      Source {c |}       SS           df       MS      Number of obs   ={res}       367
{txt}{hline 13}{c +}{hline 34}   F(13, 353)      = {res}    12.02
{txt}       Model {c |} {res} 27.7360792        13  2.13354455   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res}  62.634493       353  .177434824   {txt}R-squared       ={res}    0.3069
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.2814
{txt}       Total {c |} {res} 90.3705722       366  .246914132   {txt}Root MSE        =   {res} .42123

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0670922{col 33}{space 2} .0240163{col 44}{space 1}    2.79{col 53}{space 3}0.005{col 61}{space 4} .0198593{col 74}{space 3} .1143252
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2102362{col 33}{space 2}  .022774{col 44}{space 1}    9.23{col 53}{space 3}0.000{col 61}{space 4} .1654464{col 74}{space 3}  .255026
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1569378{col 33}{space 2} .1040422{col 44}{space 1}    1.51{col 53}{space 3}0.132{col 61}{space 4}-.0476826{col 74}{space 3} .3615583
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0717257{col 33}{space 2} .1069312{col 44}{space 1}    0.67{col 53}{space 3}0.503{col 61}{space 4}-.1385767{col 74}{space 3}  .282028
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0476565{col 33}{space 2} .1160095{col 44}{space 1}    0.41{col 53}{space 3}0.681{col 61}{space 4}-.1805003{col 74}{space 3} .2758133
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0003178{col 33}{space 2} .0449346{col 44}{space 1}    0.01{col 53}{space 3}0.994{col 61}{space 4}-.0880554{col 74}{space 3}  .088691
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0339366{col 33}{space 2} .0700772{col 44}{space 1}    0.48{col 53}{space 3}0.628{col 61}{space 4}-.1038847{col 74}{space 3} .1717578
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0203087{col 33}{space 2} .1059959{col 44}{space 1}   -0.19{col 53}{space 3}0.848{col 61}{space 4}-.2287715{col 74}{space 3} .1881541
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0881335{col 33}{space 2} .0640516{col 44}{space 1}    1.38{col 53}{space 3}0.170{col 61}{space 4}-.0378373{col 74}{space 3} .2141042
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .1129958{col 33}{space 2} .0658275{col 44}{space 1}    1.72{col 53}{space 3}0.087{col 61}{space 4}-.0164675{col 74}{space 3} .2424591
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .1142859{col 33}{space 2} .0824958{col 44}{space 1}    1.39{col 53}{space 3}0.167{col 61}{space 4}-.0479592{col 74}{space 3} .2765311
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2} .0498732{col 33}{space 2} .0271892{col 44}{space 1}    1.83{col 53}{space 3}0.067{col 61}{space 4}   -.0036{col 74}{space 3} .1033464
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2618425{col 33}{space 2} .0662007{col 44}{space 1}    3.96{col 53}{space 3}0.000{col 61}{space 4} .1316452{col 74}{space 3} .3920399
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .2283802{col 33}{space 2} .1143303{col 44}{space 1}    2.00{col 53}{space 3}0.047{col 61}{space 4} .0035261{col 74}{space 3} .4532344
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. esttab thomas_rf_approval_1_d  thomas_rf_approval_2_d thomas_rf_vc_1_d   thomas_rf_vc_2_d  using  "table_A13_thomas.tex", /// 
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Actual agreement and Senator Evaluations (Reduced Form), Thomas, Democrats only\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A13_thomas.tex"'})

{com}. 
. *SOTO/KAGAN
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *APPROVAL
. eststo sk_rf_approval_1_d: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement if dem_lean==1,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    53,455
                                                {txt}F(2, 28188)       =  {res}  8591.10
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2997
                                                {txt}Root MSE          =    {res} .40159

{txt}{ralign 85:(Std. Err. adjusted for {res:28,189} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1294924{col 33}{space 2} .0033102{col 44}{space 1}   39.12{col 53}{space 3}0.000{col 61}{space 4} .1230042{col 74}{space 3} .1359807
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1831132{col 33}{space 2} .0033096{col 44}{space 1}   55.33{col 53}{space 3}0.000{col 61}{space 4} .1766263{col 74}{space 3} .1896001
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5296296{col 33}{space 2} .0023416{col 44}{space 1}  226.18{col 53}{space 3}0.000{col 61}{space 4} .5250399{col 74}{space 3} .5342192
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_rf_approval_2_d: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement `controls' if dem_lean==1,   cluster(case_id_new)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     5,953
                                                {txt}F(13, 3094)       =  {res}   155.71
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2895
                                                {txt}Root MSE          =    {res} .40368

{txt}{ralign 85:(Std. Err. adjusted for {res:3,095} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1043233{col 33}{space 2} .0100776{col 44}{space 1}   10.35{col 53}{space 3}0.000{col 61}{space 4} .0845638{col 74}{space 3} .1240829
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1572168{col 33}{space 2} .0101196{col 44}{space 1}   15.54{col 53}{space 3}0.000{col 61}{space 4} .1373749{col 74}{space 3} .1770586
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0617509{col 33}{space 2}  .047328{col 44}{space 1}   -1.30{col 53}{space 3}0.192{col 61}{space 4}-.1545485{col 74}{space 3} .0310466
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.1089606{col 33}{space 2} .0474435{col 44}{space 1}   -2.30{col 53}{space 3}0.022{col 61}{space 4}-.2019846{col 74}{space 3}-.0159367
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0900412{col 33}{space 2} .0481456{col 44}{space 1}   -1.87{col 53}{space 3}0.062{col 61}{space 4}-.1844417{col 74}{space 3} .0043594
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0380339{col 33}{space 2} .0125941{col 44}{space 1}    3.02{col 53}{space 3}0.003{col 61}{space 4} .0133404{col 74}{space 3} .0627275
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0457638{col 33}{space 2} .0165691{col 44}{space 1}    2.76{col 53}{space 3}0.006{col 61}{space 4} .0132763{col 74}{space 3} .0782512
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0425761{col 33}{space 2} .0247451{col 44}{space 1}    1.72{col 53}{space 3}0.085{col 61}{space 4}-.0059424{col 74}{space 3} .0910947
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0327391{col 33}{space 2} .0257627{col 44}{space 1}   -1.27{col 53}{space 3}0.204{col 61}{space 4}-.0832529{col 74}{space 3} .0177746
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0270216{col 33}{space 2} .0231428{col 44}{space 1}   -1.17{col 53}{space 3}0.243{col 61}{space 4}-.0723983{col 74}{space 3} .0183552
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0284869{col 33}{space 2} .0257202{col 44}{space 1}   -1.11{col 53}{space 3}0.268{col 61}{space 4}-.0789172{col 74}{space 3} .0219435
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2} .0179451{col 33}{space 2} .0062957{col 44}{space 1}    2.85{col 53}{space 3}0.004{col 61}{space 4} .0056009{col 74}{space 3} .0302892
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1773559{col 33}{space 2} .0205852{col 44}{space 1}    8.62{col 53}{space 3}0.000{col 61}{space 4}  .136994{col 74}{space 3} .2177179
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5427403{col 33}{space 2} .0491667{col 44}{space 1}   11.04{col 53}{space 3}0.000{col 61}{space 4} .4463377{col 74}{space 3}  .639143
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *VOTE CHOICE (ONLY KAGAN)
. keep if nominee=="kagan"
{txt}(27,978 observations deleted)

{com}. keep if R_had_incumbent10_elec==1
{txt}(66,230 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_cces_name, "Christopher Dodd", "George LeMieux" , "Roland Burris" , "Evan Bayh", "Samuel Brownback")
{txt}(9,654 observations deleted)

{com}. drop if inlist(sen_cces_name,  "Jim Bunning" , "Christopher 'Kit' Bond" , "Judd Gregg" , "Byron Dorgan" , "George Voinovich"  , "Arlen Specter" , "Robert Bennett")
{txt}(7,938 observations deleted)

{com}. eststo sk_rf_vc_1_d: reg R_vote_inc sen_actual_nominee_agreement sen_actual_party_agreement if dem_lean==1,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     7,923
                                                {txt}F(2, 6960)        =  {res} 10286.29
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7753
                                                {txt}Root MSE          =    {res} .20506

{txt}{ralign 85:(Std. Err. adjusted for {res:6,961} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2}  .088002{col 33}{space 2} .0078907{col 44}{space 1}   11.15{col 53}{space 3}0.000{col 61}{space 4} .0725338{col 74}{space 3} .1034702
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .3698681{col 33}{space 2} .0080185{col 44}{space 1}   46.13{col 53}{space 3}0.000{col 61}{space 4} .3541493{col 74}{space 3} .3855868
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5267334{col 33}{space 2} .0034245{col 44}{space 1}  153.81{col 53}{space 3}0.000{col 61}{space 4} .5200203{col 74}{space 3} .5334466
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_rf_vc_2_d: reg R_vote_inc sen_actual_nominee_agreement sen_actual_party_agreement `controls' if dem_lean==1,   cluster(case_id_new)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}       713
                                                {txt}F(13, 622)        =  {res}   398.93
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.8417
                                                {txt}Root MSE          =    {res} .17125

{txt}{ralign 85:(Std. Err. adjusted for {res:623} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .0800721{col 33}{space 2}  .026019{col 44}{space 1}    3.08{col 53}{space 3}0.002{col 61}{space 4} .0289763{col 74}{space 3} .1311678
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .3798377{col 33}{space 2} .0278629{col 44}{space 1}   13.63{col 53}{space 3}0.000{col 61}{space 4}  .325121{col 74}{space 3} .4345543
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} -.067756{col 33}{space 2} .0532158{col 44}{space 1}   -1.27{col 53}{space 3}0.203{col 61}{space 4}-.1722604{col 74}{space 3} .0367484
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0240183{col 33}{space 2} .0496236{col 44}{space 1}   -0.48{col 53}{space 3}0.629{col 61}{space 4}-.1214684{col 74}{space 3} .0734318
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0520174{col 33}{space 2} .0506291{col 44}{space 1}   -1.03{col 53}{space 3}0.305{col 61}{space 4} -.151442{col 74}{space 3} .0474072
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}  .014539{col 33}{space 2} .0132822{col 44}{space 1}    1.09{col 53}{space 3}0.274{col 61}{space 4}-.0115444{col 74}{space 3} .0406225
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0160877{col 33}{space 2} .0159181{col 44}{space 1}   -1.01{col 53}{space 3}0.313{col 61}{space 4}-.0473474{col 74}{space 3} .0151721
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0269144{col 33}{space 2} .0432781{col 44}{space 1}   -0.62{col 53}{space 3}0.534{col 61}{space 4}-.1119033{col 74}{space 3} .0580746
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0083519{col 33}{space 2} .0379381{col 44}{space 1}   -0.22{col 53}{space 3}0.826{col 61}{space 4}-.0828541{col 74}{space 3} .0661503
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0241274{col 33}{space 2} .0376558{col 44}{space 1}    0.64{col 53}{space 3}0.522{col 61}{space 4}-.0498206{col 74}{space 3} .0980754
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0205764{col 33}{space 2} .0394001{col 44}{space 1}    0.52{col 53}{space 3}0.602{col 61}{space 4}-.0567969{col 74}{space 3} .0979496
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0122988{col 33}{space 2} .0090988{col 44}{space 1}   -1.35{col 53}{space 3}0.177{col 61}{space 4}-.0301668{col 74}{space 3} .0055692
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0379231{col 33}{space 2}  .025708{col 44}{space 1}    1.48{col 53}{space 3}0.141{col 61}{space 4} -.012562{col 74}{space 3} .0884082
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5419593{col 33}{space 2} .0604992{col 44}{space 1}    8.96{col 53}{space 3}0.000{col 61}{space 4} .4231518{col 74}{space 3} .6607668
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab sk_rf_approval_1_d  sk_rf_approval_2_d sk_rf_vc_1_d sk_rf_vc_2_d using  "table_A13_soto_kagan.tex", /// 
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Actual agreement and Senator Evaluations (Reduced Form), Sotomayor and Kagan, Democrats only\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A13_soto_kagan.tex"'})

{com}. 
.         *REPUBLICANS
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. eststo thomas_rf_approval_1_g: reg sen_approval_binary sen_actual_thomas_agreement sen_actual_party_agreement if gop_lean==1,  cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     1,499
                                                {txt}F(2, 893)         =  {res}     6.50
                                                {txt}Prob > F          = {res}    0.0016
                                                {txt}R-squared         = {res}    0.0100
                                                {txt}Root MSE          =    {res} .41041

{txt}{ralign 85:(Std. Err. adjusted for {res:894} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0214188{col 33}{space 2} .0122151{col 44}{space 1}    1.75{col 53}{space 3}0.080{col 61}{space 4}-.0025547{col 74}{space 3} .0453924
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0332023{col 33}{space 2} .0109492{col 44}{space 1}    3.03{col 53}{space 3}0.002{col 61}{space 4} .0117132{col 74}{space 3} .0546914
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .7867937{col 33}{space 2} .0114404{col 44}{space 1}   68.77{col 53}{space 3}0.000{col 61}{space 4} .7643405{col 74}{space 3} .8092469
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_rf_approval_2_g: reg sen_approval_binary sen_actual_thomas_agreement sen_actual_party_agreement `controls' if gop_lean==1,   cluster(case_id)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     1,150
                                                {txt}F(13, 682)        =  {res}     9.71
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0415
                                                {txt}Root MSE          =    {res} .41536

{txt}{ralign 85:(Std. Err. adjusted for {res:683} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0281726{col 33}{space 2} .0136563{col 44}{space 1}    2.06{col 53}{space 3}0.039{col 61}{space 4} .0013592{col 74}{space 3} .0549861
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0213203{col 33}{space 2} .0136776{col 44}{space 1}    1.56{col 53}{space 3}0.120{col 61}{space 4} -.005535{col 74}{space 3} .0481755
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0572861{col 33}{space 2} .0627592{col 44}{space 1}    0.91{col 53}{space 3}0.362{col 61}{space 4}-.0659383{col 74}{space 3} .1805105
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0631682{col 33}{space 2}  .063133{col 44}{space 1}    1.00{col 53}{space 3}0.317{col 61}{space 4}-.0607901{col 74}{space 3} .1871265
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0412439{col 33}{space 2} .0649868{col 44}{space 1}    0.63{col 53}{space 3}0.526{col 61}{space 4}-.0863544{col 74}{space 3} .1688421
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0467019{col 33}{space 2} .0258687{col 44}{space 1}    1.81{col 53}{space 3}0.071{col 61}{space 4}  -.00409{col 74}{space 3} .0974938
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .2376923{col 33}{space 2} .0312293{col 44}{space 1}    7.61{col 53}{space 3}0.000{col 61}{space 4} .1763751{col 74}{space 3} .2990094
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.2096673{col 33}{space 2} .1058451{col 44}{space 1}   -1.98{col 53}{space 3}0.048{col 61}{space 4}-.4174887{col 74}{space 3}-.0018459
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0277843{col 33}{space 2} .0346362{col 44}{space 1}   -0.80{col 53}{space 3}0.423{col 61}{space 4}-.0957907{col 74}{space 3} .0402221
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0111297{col 33}{space 2} .0375104{col 44}{space 1}   -0.30{col 53}{space 3}0.767{col 61}{space 4}-.0847794{col 74}{space 3} .0625201
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0559047{col 33}{space 2} .0460921{col 44}{space 1}   -1.21{col 53}{space 3}0.226{col 61}{space 4}-.1464042{col 74}{space 3} .0345947
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0332611{col 33}{space 2} .0121637{col 44}{space 1}   -2.73{col 53}{space 3}0.006{col 61}{space 4}-.0571439{col 74}{space 3}-.0093782
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0811392{col 33}{space 2} .0417882{col 44}{space 1}    1.94{col 53}{space 3}0.053{col 61}{space 4}-.0009099{col 74}{space 3} .1631882
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .6917602{col 33}{space 2} .0674177{col 44}{space 1}   10.26{col 53}{space 3}0.000{col 61}{space 4}  .559389{col 74}{space 3} .8241313
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *VOTE CHOICE
. keep if R_had_incumbent_elec==1 // keep only observations with incumbent senators
{txt}(3,544 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_name, "DIXON, Alan John" ,"CRANSTON, Alan" ,"WIRTH, Timothy E." ,"RUDMAN, Warren Bruce" ,"GARN, Edwin Jacob (Jake)" ,"ADAMS, Brockman (Brock)")
{txt}(359 observations deleted)

{com}. eststo thomas_rf_vc_1_g: reg R_vote_inc sen_actual_thomas_agreement sen_actual_party_agreement if gop_lean==1

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       449
{txt}{hline 13}{c +}{hline 34}   F(2, 446)       = {res}    26.31
{txt}       Model {c |} {res} 11.7637453         2  5.88187266   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 99.7240052       446  .223596424   {txt}R-squared       ={res}    0.1055
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1015
{txt}       Total {c |} {res} 111.487751       448  .248856586   {txt}Root MSE        =   {res} .47286

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0364109{col 33}{space 2} .0246812{col 44}{space 1}    1.48{col 53}{space 3}0.141{col 61}{space 4} -.012095{col 74}{space 3} .0849167
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1511674{col 33}{space 2} .0228849{col 44}{space 1}    6.61{col 53}{space 3}0.000{col 61}{space 4} .1061919{col 74}{space 3} .1961429
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5409817{col 33}{space 2} .0226393{col 44}{space 1}   23.90{col 53}{space 3}0.000{col 61}{space 4} .4964889{col 74}{space 3} .5854746
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_rf_vc_2_g: reg  R_vote_inc sen_actual_thomas_agreement sen_actual_party_agreement `controls' if gop_lean==1
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

      Source {c |}       SS           df       MS      Number of obs   ={res}       369
{txt}{hline 13}{c +}{hline 34}   F(13, 355)      = {res}     5.10
{txt}       Model {c |} {res} 14.4239178        13  1.10953214   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res}  77.256299       355  .217623378   {txt}R-squared       ={res}    0.1573
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1265
{txt}       Total {c |} {res} 91.6802168       368  .249131024   {txt}Root MSE        =   {res}  .4665

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_thomas~t {c |}{col 21}{res}{space 2} .0171086{col 33}{space 2} .0268902{col 44}{space 1}    0.64{col 53}{space 3}0.525{col 61}{space 4}-.0357755{col 74}{space 3} .0699927
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .0946149{col 33}{space 2} .0282755{col 44}{space 1}    3.35{col 53}{space 3}0.001{col 61}{space 4} .0390064{col 74}{space 3} .1502234
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0706698{col 33}{space 2} .1267257{col 44}{space 1}   -0.56{col 53}{space 3}0.577{col 61}{space 4}-.3198972{col 74}{space 3} .1785576
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0274711{col 33}{space 2} .1259578{col 44}{space 1}   -0.22{col 53}{space 3}0.827{col 61}{space 4}-.2751885{col 74}{space 3} .2202462
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0748951{col 33}{space 2} .1288905{col 44}{space 1}   -0.58{col 53}{space 3}0.562{col 61}{space 4}  -.32838{col 74}{space 3} .1785899
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0302884{col 33}{space 2} .0496849{col 44}{space 1}   -0.61{col 53}{space 3}0.543{col 61}{space 4}-.1280022{col 74}{space 3} .0674254
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1806128{col 33}{space 2} .2402338{col 44}{space 1}    0.75{col 53}{space 3}0.453{col 61}{space 4}-.2918476{col 74}{space 3} .6530732
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0174078{col 33}{space 2} .1599865{col 44}{space 1}    0.11{col 53}{space 3}0.913{col 61}{space 4}-.2972326{col 74}{space 3} .3320481
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0754855{col 33}{space 2} .0740951{col 44}{space 1}   -1.02{col 53}{space 3}0.309{col 61}{space 4} -.221206{col 74}{space 3} .0702351
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0498162{col 33}{space 2} .0779849{col 44}{space 1}   -0.64{col 53}{space 3}0.523{col 61}{space 4}-.2031868{col 74}{space 3} .1035543
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0433414{col 33}{space 2} .0872761{col 44}{space 1}   -0.50{col 53}{space 3}0.620{col 61}{space 4}-.2149846{col 74}{space 3} .1283017
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2} .0259053{col 33}{space 2} .0290852{col 44}{space 1}    0.89{col 53}{space 3}0.374{col 61}{space 4}-.0312957{col 74}{space 3} .0831063
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .3585229{col 33}{space 2} .0783942{col 44}{space 1}    4.57{col 53}{space 3}0.000{col 61}{space 4} .2043476{col 74}{space 3} .5126983
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4693933{col 33}{space 2} .1409513{col 44}{space 1}    3.33{col 53}{space 3}0.001{col 61}{space 4} .1921889{col 74}{space 3} .7465978
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. esttab thomas_rf_approval_1_g  thomas_rf_approval_2_g thomas_rf_vc_1_g   thomas_rf_vc_2_g  using  "table_A14_thomas.tex", /// 
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Actual agreement and Senator Evaluations (Reduced Form), Thomas, Republicans only\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A14_thomas.tex"'})

{com}. 
. *SOTO/KAGAN
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *APPROVAL
. eststo sk_rf_approval_1_g: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement if gop_lean==1,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    53,957
                                                {txt}F(2, 28113)       =  {res} 17890.30
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4455
                                                {txt}Root MSE          =    {res} .36241

{txt}{ralign 85:(Std. Err. adjusted for {res:28,114} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2}  .121664{col 33}{space 2} .0032087{col 44}{space 1}   37.92{col 53}{space 3}0.000{col 61}{space 4} .1153747{col 74}{space 3} .1279532
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2399014{col 33}{space 2} .0031697{col 44}{space 1}   75.69{col 53}{space 3}0.000{col 61}{space 4} .2336886{col 74}{space 3} .2461141
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4578888{col 33}{space 2}  .001941{col 44}{space 1}  235.91{col 53}{space 3}0.000{col 61}{space 4} .4540844{col 74}{space 3} .4616932
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_rf_approval_2_g: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement `controls' if gop_lean==1,   cluster(case_id_new)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}     5,997
                                                {txt}F(13, 3094)       =  {res}   403.90
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4779
                                                {txt}Root MSE          =    {res} .35627

{txt}{ralign 85:(Std. Err. adjusted for {res:3,095} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1013863{col 33}{space 2} .0090143{col 44}{space 1}   11.25{col 53}{space 3}0.000{col 61}{space 4} .0837117{col 74}{space 3} .1190609
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2000041{col 33}{space 2} .0106984{col 44}{space 1}   18.69{col 53}{space 3}0.000{col 61}{space 4} .1790275{col 74}{space 3} .2209807
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0132328{col 33}{space 2} .0445688{col 44}{space 1}    0.30{col 53}{space 3}0.767{col 61}{space 4}-.0741547{col 74}{space 3} .1006202
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0111001{col 33}{space 2}  .044528{col 44}{space 1}   -0.25{col 53}{space 3}0.803{col 61}{space 4}-.0984075{col 74}{space 3} .0762073
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0039717{col 33}{space 2} .0448669{col 44}{space 1}    0.09{col 53}{space 3}0.929{col 61}{space 4}-.0840003{col 74}{space 3} .0919437
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0147375{col 33}{space 2} .0110447{col 44}{space 1}    1.33{col 53}{space 3}0.182{col 61}{space 4}-.0069182{col 74}{space 3} .0363931
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1406045{col 33}{space 2} .0413642{col 44}{space 1}    3.40{col 53}{space 3}0.001{col 61}{space 4} .0595005{col 74}{space 3} .2217085
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0498625{col 33}{space 2} .0251082{col 44}{space 1}    1.99{col 53}{space 3}0.047{col 61}{space 4} .0006321{col 74}{space 3} .0990929
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} -.085706{col 33}{space 2}   .03148{col 44}{space 1}   -2.72{col 53}{space 3}0.007{col 61}{space 4}-.1474297{col 74}{space 3}-.0239822
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0612595{col 33}{space 2} .0292312{col 44}{space 1}   -2.10{col 53}{space 3}0.036{col 61}{space 4}-.1185741{col 74}{space 3}-.0039449
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0470233{col 33}{space 2} .0297222{col 44}{space 1}   -1.58{col 53}{space 3}0.114{col 61}{space 4}-.1053006{col 74}{space 3}  .011254
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0088763{col 33}{space 2} .0076329{col 44}{space 1}   -1.16{col 53}{space 3}0.245{col 61}{space 4}-.0238423{col 74}{space 3} .0060897
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2061158{col 33}{space 2} .0217696{col 44}{space 1}    9.47{col 53}{space 3}0.000{col 61}{space 4} .1634314{col 74}{space 3} .2488002
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4514326{col 33}{space 2} .0534761{col 44}{space 1}    8.44{col 53}{space 3}0.000{col 61}{space 4} .3465803{col 74}{space 3} .5562849
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *VOTE CHOICE (ONLY KAGAN)
. keep if nominee=="kagan"
{txt}(27,978 observations deleted)

{com}. keep if R_had_incumbent10_elec==1
{txt}(66,230 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_cces_name, "Christopher Dodd", "George LeMieux" , "Roland Burris" , "Evan Bayh", "Samuel Brownback")
{txt}(9,654 observations deleted)

{com}. drop if inlist(sen_cces_name,  "Jim Bunning" , "Christopher 'Kit' Bond" , "Judd Gregg" , "Byron Dorgan" , "George Voinovich"  , "Arlen Specter" , "Robert Bennett")
{txt}(7,938 observations deleted)

{com}. eststo sk_rf_vc_1_g: reg R_vote_inc sen_actual_nominee_agreement sen_actual_party_agreement if gop_lean==1,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     8,085
                                                {txt}F(2, 7372)        =  {res} 26200.43
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.8324
                                                {txt}Root MSE          =    {res} .19846

{txt}{ralign 85:(Std. Err. adjusted for {res:7,373} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1014515{col 33}{space 2} .0080786{col 44}{space 1}   12.56{col 53}{space 3}0.000{col 61}{space 4} .0856151{col 74}{space 3} .1172879
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .3772168{col 33}{space 2} .0078763{col 44}{space 1}   47.89{col 53}{space 3}0.000{col 61}{space 4}  .361777{col 74}{space 3} .3926566
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5018522{col 33}{space 2} .0023852{col 44}{space 1}  210.40{col 53}{space 3}0.000{col 61}{space 4} .4971765{col 74}{space 3} .5065279
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_rf_vc_2_g: reg R_vote_inc sen_actual_nominee_agreement sen_actual_party_agreement `controls' if gop_lean==1,   cluster(case_id_new)
{p 0 6 2}{txt}note: dem_lean omitted because of collinearity{p_end}
{p 0 6 2}note: gop_lean omitted because of collinearity{p_end}

Linear regression                               Number of obs     = {res}       764
                                                {txt}F(13, 693)        =  {res}   517.92
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.8093
                                                {txt}Root MSE          =    {res} .21753

{txt}{ralign 85:(Std. Err. adjusted for {res:694} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1010115{col 33}{space 2} .0256214{col 44}{space 1}    3.94{col 53}{space 3}0.000{col 61}{space 4} .0507066{col 74}{space 3} .1513164
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .3083323{col 33}{space 2} .0312279{col 44}{space 1}    9.87{col 53}{space 3}0.000{col 61}{space 4} .2470196{col 74}{space 3}  .369645
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0237638{col 33}{space 2} .1072363{col 44}{space 1}    0.22{col 53}{space 3}0.825{col 61}{space 4}-.1867832{col 74}{space 3} .2343109
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0423654{col 33}{space 2} .1085797{col 44}{space 1}    0.39{col 53}{space 3}0.697{col 61}{space 4}-.1708191{col 74}{space 3}   .25555
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0102488{col 33}{space 2} .1089289{col 44}{space 1}    0.09{col 53}{space 3}0.925{col 61}{space 4}-.2036215{col 74}{space 3}  .224119
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0194749{col 33}{space 2} .0194556{col 44}{space 1}    1.00{col 53}{space 3}0.317{col 61}{space 4}-.0187241{col 74}{space 3}  .057674
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0666806{col 33}{space 2} .0763864{col 44}{space 1}   -0.87{col 53}{space 3}0.383{col 61}{space 4}-.2166571{col 74}{space 3} .0832959
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0265972{col 33}{space 2}  .058669{col 44}{space 1}    0.45{col 53}{space 3}0.650{col 61}{space 4}-.0885931{col 74}{space 3} .1417876
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0662555{col 33}{space 2}  .075451{col 44}{space 1}   -0.88{col 53}{space 3}0.380{col 61}{space 4}-.2143955{col 74}{space 3} .0818846
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0722086{col 33}{space 2} .0682554{col 44}{space 1}   -1.06{col 53}{space 3}0.290{col 61}{space 4}-.2062208{col 74}{space 3} .0618036
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0724846{col 33}{space 2}  .068032{col 44}{space 1}   -1.07{col 53}{space 3}0.287{col 61}{space 4}-.2060582{col 74}{space 3}  .061089
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2} .0118574{col 33}{space 2} .0216054{col 44}{space 1}    0.55{col 53}{space 3}0.583{col 61}{space 4}-.0305624{col 74}{space 3} .0542772
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1778124{col 33}{space 2} .0532802{col 44}{space 1}    3.34{col 53}{space 3}0.001{col 61}{space 4} .0732025{col 74}{space 3} .2824224
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4791095{col 33}{space 2} .1274229{col 44}{space 1}    3.76{col 53}{space 3}0.000{col 61}{space 4} .2289282{col 74}{space 3} .7292908
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab sk_rf_approval_1_g  sk_rf_approval_2_g sk_rf_vc_1_g sk_rf_vc_2_g using  "table_A14_soto_kagan.tex", /// 
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Actual agreement and Senator Evaluations (Reduced Form), Sotomayor and Kagan, Republicans only\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A14_soto_kagan.tex"'})

{com}. 
. 
. 
. *table A-20: separate results for Sotomayor and Kagan (just approval, since vote choice analysis is based solely on Kagan)
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *Sotomayor (APPROVAL)
. eststo s_rf_approval_1: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement if nominee=="sotomayor",  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    23,315
                                                {txt}F(2, 12502)       =  {res}  4815.73
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3174
                                                {txt}Root MSE          =    {res} .41271

{txt}{ralign 85:(Std. Err. adjusted for {res:12,503} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1179339{col 33}{space 2} .0042939{col 44}{space 1}   27.47{col 53}{space 3}0.000{col 61}{space 4} .1095171{col 74}{space 3} .1263507
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2168891{col 33}{space 2} .0044136{col 44}{space 1}   49.14{col 53}{space 3}0.000{col 61}{space 4} .2082377{col 74}{space 3} .2255405
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5009707{col 33}{space 2}  .003228{col 44}{space 1}  155.20{col 53}{space 3}0.000{col 61}{space 4} .4946434{col 74}{space 3}  .507298
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo s_rf_approval_2: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement `controls' if nominee=="sotomayor",   cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     4,403
                                                {txt}F(15, 2273)       =  {res}   157.70
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3499
                                                {txt}Root MSE          =    {res} .40244

{txt}{ralign 85:(Std. Err. adjusted for {res:2,274} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .0962935{col 33}{space 2} .0098285{col 44}{space 1}    9.80{col 53}{space 3}0.000{col 61}{space 4} .0770198{col 74}{space 3} .1155672
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1652497{col 33}{space 2}  .011245{col 44}{space 1}   14.70{col 53}{space 3}0.000{col 61}{space 4} .1431982{col 74}{space 3} .1873011
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0449564{col 33}{space 2} .0424599{col 44}{space 1}   -1.06{col 53}{space 3}0.290{col 61}{space 4}-.1282205{col 74}{space 3} .0383078
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0699079{col 33}{space 2} .0441913{col 44}{space 1}   -1.58{col 53}{space 3}0.114{col 61}{space 4}-.1565674{col 74}{space 3} .0167516
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0506053{col 33}{space 2} .0457355{col 44}{space 1}   -1.11{col 53}{space 3}0.269{col 61}{space 4} -.140293{col 74}{space 3} .0390825
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0401821{col 33}{space 2} .0149239{col 44}{space 1}    2.69{col 53}{space 3}0.007{col 61}{space 4} .0109162{col 74}{space 3}  .069448
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0403139{col 33}{space 2} .0235142{col 44}{space 1}    1.71{col 53}{space 3}0.087{col 61}{space 4}-.0057977{col 74}{space 3} .0864255
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0433389{col 33}{space 2} .0252916{col 44}{space 1}    1.71{col 53}{space 3}0.087{col 61}{space 4} -.006258{col 74}{space 3} .0929358
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0353046{col 33}{space 2} .0264898{col 44}{space 1}   -1.33{col 53}{space 3}0.183{col 61}{space 4}-.0872514{col 74}{space 3} .0166422
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0179412{col 33}{space 2} .0255677{col 44}{space 1}   -0.70{col 53}{space 3}0.483{col 61}{space 4}-.0680797{col 74}{space 3} .0321973
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0086528{col 33}{space 2} .0282903{col 44}{space 1}   -0.31{col 53}{space 3}0.760{col 61}{space 4}-.0641303{col 74}{space 3} .0468247
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0949666{col 33}{space 2} .0285045{col 44}{space 1}    3.33{col 53}{space 3}0.001{col 61}{space 4} .0390691{col 74}{space 3}  .150864
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}  .075782{col 33}{space 2} .0281023{col 44}{space 1}    2.70{col 53}{space 3}0.007{col 61}{space 4} .0206731{col 74}{space 3}  .130891
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} -.013015{col 33}{space 2}  .007559{col 44}{space 1}   -1.72{col 53}{space 3}0.085{col 61}{space 4}-.0278382{col 74}{space 3} .0018083
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}  .244704{col 33}{space 2} .0251805{col 44}{space 1}    9.72{col 53}{space 3}0.000{col 61}{space 4} .1953247{col 74}{space 3} .2940833
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3832749{col 33}{space 2} .0536436{col 44}{space 1}    7.14{col 53}{space 3}0.000{col 61}{space 4} .2780793{col 74}{space 3} .4884706
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *Kagan 
.         *approval
. eststo k_rf_approval_1: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement if nominee=="kagan",  cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}    97,347
                                                {txt}F(2, 50750)       =  {res} 29627.96
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.3908
                                                {txt}Root MSE          =    {res} .39025

{txt}{ralign 85:(Std. Err. adjusted for {res:50,751} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1409762{col 33}{space 2} .0023656{col 44}{space 1}   59.59{col 53}{space 3}0.000{col 61}{space 4} .1363397{col 74}{space 3} .1456128
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .2155523{col 33}{space 2} .0024122{col 44}{space 1}   89.36{col 53}{space 3}0.000{col 61}{space 4} .2108244{col 74}{space 3} .2202802
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4705976{col 33}{space 2} .0014525{col 44}{space 1}  323.98{col 53}{space 3}0.000{col 61}{space 4} .4677506{col 74}{space 3} .4734446
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo k_rf_approval_2: reg sen_approval_binary sen_actual_nominee_agreement sen_actual_party_agreement `controls' if nominee=="kagan",   cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     8,963
                                                {txt}F(15, 4655)       =  {res}   458.72
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4147
                                                {txt}Root MSE          =    {res} .38284

{txt}{ralign 85:(Std. Err. adjusted for {res:4,656} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_actual_nomine~t {c |}{col 21}{res}{space 2} .1283184{col 33}{space 2} .0079969{col 44}{space 1}   16.05{col 53}{space 3}0.000{col 61}{space 4} .1126407{col 74}{space 3} .1439961
{txt}sen_actual_party_~t {c |}{col 21}{res}{space 2} .1678091{col 33}{space 2} .0088231{col 44}{space 1}   19.02{col 53}{space 3}0.000{col 61}{space 4} .1505116{col 74}{space 3} .1851067
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0151511{col 33}{space 2}  .043454{col 44}{space 1}    0.35{col 53}{space 3}0.727{col 61}{space 4}-.0700394{col 74}{space 3} .1003416
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0087934{col 33}{space 2}   .04331{col 44}{space 1}   -0.20{col 53}{space 3}0.839{col 61}{space 4}-.0937016{col 74}{space 3} .0761148
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0117465{col 33}{space 2} .0438386{col 44}{space 1}    0.27{col 53}{space 3}0.789{col 61}{space 4}-.0741979{col 74}{space 3} .0976909
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0259276{col 33}{space 2} .0097833{col 44}{space 1}    2.65{col 53}{space 3}0.008{col 61}{space 4} .0067477{col 74}{space 3} .0451075
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0644948{col 33}{space 2} .0191038{col 44}{space 1}    3.38{col 53}{space 3}0.001{col 61}{space 4} .0270422{col 74}{space 3} .1019474
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0462155{col 33}{space 2} .0236764{col 44}{space 1}    1.95{col 53}{space 3}0.051{col 61}{space 4}-.0002015{col 74}{space 3} .0926324
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0839629{col 33}{space 2} .0276055{col 44}{space 1}   -3.04{col 53}{space 3}0.002{col 61}{space 4}-.1380828{col 74}{space 3} -.029843
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0536229{col 33}{space 2} .0250883{col 44}{space 1}   -2.14{col 53}{space 3}0.033{col 61}{space 4} -.102808{col 74}{space 3}-.0044379
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0419211{col 33}{space 2} .0259608{col 44}{space 1}   -1.61{col 53}{space 3}0.106{col 61}{space 4}-.0928166{col 74}{space 3} .0089743
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0966503{col 33}{space 2} .0200483{col 44}{space 1}    4.82{col 53}{space 3}0.000{col 61}{space 4} .0573461{col 74}{space 3} .1359545
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0625548{col 33}{space 2} .0198117{col 44}{space 1}    3.16{col 53}{space 3}0.002{col 61}{space 4} .0237145{col 74}{space 3} .1013952
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0070863{col 33}{space 2} .0057739{col 44}{space 1}    1.23{col 53}{space 3}0.220{col 61}{space 4}-.0042333{col 74}{space 3} .0184059
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1895953{col 33}{space 2} .0168294{col 44}{space 1}   11.27{col 53}{space 3}0.000{col 61}{space 4} .1566017{col 74}{space 3} .2225889
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3617714{col 33}{space 2}  .052206{col 44}{space 1}    6.93{col 53}{space 3}0.000{col 61}{space 4} .2594229{col 74}{space 3} .4641199
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab s_rf_approval_1 s_rf_approval_2 k_rf_approval_1 k_rf_approval_2  using  "table_A_20.tex", /// 
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Actual agreement and Senator Evaluations (Reduced Form), separate results for Sotomayor and Kagan\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A_20.tex"'})

{com}.         
. *************************************************
. *TABLE 5 is calculated in the R script
. *********************************************
. 
. *************************************************
. *Perceptions and voter evaluations
. *************************************************
. *Table 6: Regression models evaluating whether perceptions about nominee votes affect eval-uation of senators.
. *Thomas
. 
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *IV REGRESSIONS
. eststo thomas_iv_approval_1: ivregress 2sls sen_approval_binary ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement), cluster(case_id) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     3,674
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}     35.91
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.0152
{txt}{col 51}Root MSE{col 67}=    {res} .39959

{txt}{ralign 85:(Std. Err. adjusted for {res:2,221} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .0786136{col 33}{space 2} .0622409{col 44}{space 1}    1.26{col 53}{space 3}0.207{col 61}{space 4}-.0433763{col 74}{space 3} .2006035
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2}  .153311{col 33}{space 2} .0334784{col 44}{space 1}    4.58{col 53}{space 3}0.000{col 61}{space 4} .0876946{col 74}{space 3} .2189273
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .787021{col 33}{space 2} .0086791{col 44}{space 1}   90.68{col 53}{space 3}0.000{col 61}{space 4} .7700103{col 74}{space 3} .8040317
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,2220){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0232{col 29}{space 2}0.0227{col 41}{space 3}0.0232{col 53}{space 3} 30.3779{col 65}{space 3}0.0000
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.1618{col 29}{space 2}0.1614{col 41}{space 3}0.1618{col 53}{space 3} 269.675{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}2221{txt} clusters in case_id)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0171{col 35}{space 6}0.0169
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.1193{col 35}{space 6}0.1191
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo thomas_iv_approval_2:ivregress 2sls  sen_approval_binary `controls' ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement), cluster(case_id)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     2,561
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}     54.05
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.0476
{txt}{col 51}Root MSE{col 67}=    {res} .40621

{txt}{ralign 85:(Std. Err. adjusted for {res:1,537} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2}  .069762{col 33}{space 2} .0667037{col 44}{space 1}    1.05{col 53}{space 3}0.296{col 61}{space 4}-.0609748{col 74}{space 3} .2004988
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .1152905{col 33}{space 2} .0426191{col 44}{space 1}    2.71{col 53}{space 3}0.007{col 61}{space 4} .0317585{col 74}{space 3} .1988224
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0140024{col 33}{space 2} .0378169{col 44}{space 1}   -0.37{col 53}{space 3}0.711{col 61}{space 4}-.0881221{col 74}{space 3} .0601173
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0105511{col 33}{space 2} .0386885{col 44}{space 1}    0.27{col 53}{space 3}0.785{col 61}{space 4} -.065277{col 74}{space 3} .0863792
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0130646{col 33}{space 2} .0420551{col 44}{space 1}   -0.31{col 53}{space 3}0.756{col 61}{space 4}-.0954911{col 74}{space 3} .0693618
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0454189{col 33}{space 2}  .016837{col 44}{space 1}    2.70{col 53}{space 3}0.007{col 61}{space 4}  .012419{col 74}{space 3} .0784187
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0088777{col 33}{space 2} .0407599{col 44}{space 1}    0.22{col 53}{space 3}0.828{col 61}{space 4}-.0710102{col 74}{space 3} .0887656
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0533927{col 33}{space 2} .0508208{col 44}{space 1}   -1.05{col 53}{space 3}0.293{col 61}{space 4}-.1529995{col 74}{space 3} .0462142
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0106076{col 33}{space 2}  .024423{col 44}{space 1}   -0.43{col 53}{space 3}0.664{col 61}{space 4}-.0584757{col 74}{space 3} .0372605
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .023508{col 33}{space 2} .0249009{col 44}{space 1}    0.94{col 53}{space 3}0.345{col 61}{space 4}-.0252969{col 74}{space 3}  .072313
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0128488{col 33}{space 2} .0306884{col 44}{space 1}    0.42{col 53}{space 3}0.675{col 61}{space 4}-.0472994{col 74}{space 3}  .072997
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0483484{col 33}{space 2} .0399208{col 44}{space 1}    1.21{col 53}{space 3}0.226{col 61}{space 4}-.0298949{col 74}{space 3} .1265917
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0784006{col 33}{space 2} .0415719{col 44}{space 1}    1.89{col 53}{space 3}0.059{col 61}{space 4}-.0030788{col 74}{space 3}   .15988
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0204231{col 33}{space 2} .0079124{col 44}{space 1}   -2.58{col 53}{space 3}0.010{col 61}{space 4}-.0359311{col 74}{space 3}-.0049152
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0483283{col 33}{space 2} .0265395{col 44}{space 1}    1.82{col 53}{space 3}0.069{col 61}{space 4}-.0036882{col 74}{space 3} .1003448
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .6691923{col 33}{space 2} .0554792{col 44}{space 1}   12.06{col 53}{space 3}0.000{col 61}{space 4} .5604551{col 74}{space 3} .7779295
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,1536){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0364{col 29}{space 2}0.0307{col 41}{space 3}0.0276{col 53}{space 3} 26.3206{col 65}{space 3}0.0000
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.2322{col 29}{space 2}0.2276{col 41}{space 3}0.1415{col 53}{space 3} 159.276{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}1537{txt} clusters in case_id)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0197{col 35}{space 6}0.0131
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.1008{col 35}{space 6}0.0948
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. *vote choice
. keep if R_had_incumbent_elec==1
{txt}(3,544 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_name, "DIXON, Alan John" ,"CRANSTON, Alan" ,"WIRTH, Timothy E." ,"RUDMAN, Warren Bruce" ,"GARN, Edwin Jacob (Jake)" ,"ADAMS, Brockman (Brock)")
{txt}(359 observations deleted)

{com}. eststo thomas_iv_vc_1: ivregress 2sls  R_vote_inc ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,036
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}     83.62
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res} .68327

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .6412083{col 33}{space 2} .5667601{col 44}{space 1}    1.13{col 53}{space 3}0.258{col 61}{space 4}-.4696212{col 74}{space 3} 1.752038
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .4270505{col 33}{space 2}  .067631{col 44}{space 1}    6.31{col 53}{space 3}0.000{col 61}{space 4} .2944962{col 74}{space 3} .5596048
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5027945{col 33}{space 2}  .036388{col 44}{space 1}   13.82{col 53}{space 3}0.000{col 61}{space 4} .4314753{col 74}{space 3} .5741137
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all
{res}
{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,1033){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0034{col 29}{space 2}0.0014{col 41}{space 3}0.0034{col 53}{space 3} 1.74123{col 65}{space 3}0.1758
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.3946{col 29}{space 2}0.3934{col 41}{space 3}0.3946{col 53}{space 3} 336.669{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0020{col 35}{space 6}0.0011
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.2368{col 35}{space 6}0.2361
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{col 3}Minimum eigenvalue statistic = {res}1.04003     

{txt}{col 3}Critical Values{col 40}# of endogenous regressors:{res}    2
{txt}{col 3}Ho: Instruments are weak{col 40}# of excluded instruments: {res}    2
{txt}{col 3}{hline 35}{c TT}{hline 33}
{col 38}{c |}{col 43}5%     10%     20%     30%
{col 3}2SLS relative bias{col 38}{c |}{col 48}(not available)
{col 3}{hline 35}{c +}{hline 33}
{col 38}{c |}{col 42}10%     15%     20%     25%
{col 3}2SLS Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}LIML Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}{hline 35}{c BT}{hline 33}


{com}. eststo thomas_iv_vc_2: ivregress 2sls  R_vote_inc `controls' ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}       785
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}     88.96
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res} .64945

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .6012027{col 33}{space 2} .6321844{col 44}{space 1}    0.95{col 53}{space 3}0.342{col 61}{space 4} -.637856{col 74}{space 3} 1.840261
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .3147148{col 33}{space 2} .0990098{col 44}{space 1}    3.18{col 53}{space 3}0.001{col 61}{space 4} .1206592{col 74}{space 3} .5087704
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0236609{col 33}{space 2} .1133751{col 44}{space 1}   -0.21{col 53}{space 3}0.835{col 61}{space 4} -.245872{col 74}{space 3} .1985502
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0421756{col 33}{space 2} .1130405{col 44}{space 1}   -0.37{col 53}{space 3}0.709{col 61}{space 4}-.2637308{col 74}{space 3} .1793797
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.1479457{col 33}{space 2} .1364367{col 44}{space 1}   -1.08{col 53}{space 3}0.278{col 61}{space 4}-.4153567{col 74}{space 3} .1194653
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0039414{col 33}{space 2}   .05985{col 44}{space 1}   -0.07{col 53}{space 3}0.947{col 61}{space 4}-.1212453{col 74}{space 3} .1133625
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1110502{col 33}{space 2} .1008191{col 44}{space 1}    1.10{col 53}{space 3}0.271{col 61}{space 4}-.0865516{col 74}{space 3} .3086519
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0404216{col 33}{space 2} .1352748{col 44}{space 1}   -0.30{col 53}{space 3}0.765{col 61}{space 4}-.3055553{col 74}{space 3} .2247121
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0188811{col 33}{space 2} .0704701{col 44}{space 1}    0.27{col 53}{space 3}0.789{col 61}{space 4}-.1192377{col 74}{space 3} .1569998
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .1321034{col 33}{space 2} .1265318{col 44}{space 1}    1.04{col 53}{space 3}0.296{col 61}{space 4}-.1158944{col 74}{space 3} .3801013
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .1052488{col 33}{space 2} .1094208{col 44}{space 1}    0.96{col 53}{space 3}0.336{col 61}{space 4}-.1092121{col 74}{space 3} .3197096
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}-.0351627{col 33}{space 2} .1213122{col 44}{space 1}   -0.29{col 53}{space 3}0.772{col 61}{space 4}-.2729303{col 74}{space 3} .2026049
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}-.0542696{col 33}{space 2} .1494054{col 44}{space 1}   -0.36{col 53}{space 3}0.716{col 61}{space 4}-.3470989{col 74}{space 3} .2385597
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0522043{col 33}{space 2}  .027981{col 44}{space 1}    1.87{col 53}{space 3}0.062{col 61}{space 4}-.0026376{col 74}{space 3} .1070461
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2288648{col 33}{space 2} .0716354{col 44}{space 1}    3.19{col 53}{space 3}0.001{col 61}{space 4}  .088462{col 74}{space 3} .3692676
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4152283{col 33}{space 2}  .151118{col 44}{space 1}    2.75{col 53}{space 3}0.006{col 61}{space 4} .1190426{col 74}{space 3} .7114141
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all
{res}
{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,769){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0190{col 29}{space 2}-0.0002{col 41}{space 3}0.0054{col 53}{space 3} 2.10192{col 65}{space 3}0.1229
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.4222{col 29}{space 2}0.4109{col 41}{space 3}0.3871{col 53}{space 3} 242.859{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0018{col 35}{space 6}-0.0203
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.1280{col 35}{space 6}0.1087
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{col 3}Minimum eigenvalue statistic = {res}.686019     

{txt}{col 3}Critical Values{col 40}# of endogenous regressors:{res}    2
{txt}{col 3}Ho: Instruments are weak{col 40}# of excluded instruments: {res}    2
{txt}{col 3}{hline 35}{c TT}{hline 33}
{col 38}{c |}{col 43}5%     10%     20%     30%
{col 3}2SLS relative bias{col 38}{c |}{col 48}(not available)
{col 3}{hline 35}{c +}{hline 33}
{col 38}{c |}{col 42}10%     15%     20%     25%
{col 3}2SLS Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}LIML Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}{hline 35}{c BT}{hline 33}


{com}. 
. *OLS
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. eststo thomas_ols_approval_1: reg sen_approval_binary sen_perceived_thomas_agreement sen_perceived_party_agreement,  cluster(case_id) 

{txt}Linear regression                               Number of obs     = {res}     3,674
                                                {txt}F(2, 2220)        =  {res}    77.61
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0506
                                                {txt}Root MSE          =    {res} .39252

{txt}{ralign 85:(Std. Err. adjusted for {res:2,221} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .1055287{col 33}{space 2} .0085687{col 44}{space 1}   12.32{col 53}{space 3}0.000{col 61}{space 4} .0887252{col 74}{space 3} .1223321
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2}  .030134{col 33}{space 2} .0121946{col 44}{space 1}    2.47{col 53}{space 3}0.014{col 61}{space 4} .0062199{col 74}{space 3} .0540481
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .7870109{col 33}{space 2} .0071538{col 44}{space 1}  110.01{col 53}{space 3}0.000{col 61}{space 4}  .772982{col 74}{space 3} .8010399
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_ols_approval_2: reg sen_approval_binary sen_perceived_thomas_agreement sen_perceived_party_agreement `controls',   cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     2,561
                                                {txt}F(15, 1536)       =  {res}    10.76
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0720
                                                {txt}Root MSE          =    {res} .40222

{txt}{ralign 85:(Std. Err. adjusted for {res:1,537} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .1109794{col 33}{space 2} .0099603{col 44}{space 1}   11.14{col 53}{space 3}0.000{col 61}{space 4} .0914421{col 74}{space 3} .1305166
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .0252471{col 33}{space 2} .0143531{col 44}{space 1}    1.76{col 53}{space 3}0.079{col 61}{space 4}-.0029067{col 74}{space 3} .0534008
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0162978{col 33}{space 2} .0381661{col 44}{space 1}   -0.43{col 53}{space 3}0.669{col 61}{space 4}-.0911609{col 74}{space 3} .0585654
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .007053{col 33}{space 2}   .03928{col 44}{space 1}    0.18{col 53}{space 3}0.858{col 61}{space 4}-.0699951{col 74}{space 3} .0841011
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.019756{col 33}{space 2} .0419697{col 44}{space 1}   -0.47{col 53}{space 3}0.638{col 61}{space 4}-.1020799{col 74}{space 3}  .062568
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0466107{col 33}{space 2} .0169382{col 44}{space 1}    2.75{col 53}{space 3}0.006{col 61}{space 4} .0133862{col 74}{space 3} .0798351
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0018506{col 33}{space 2} .0406942{col 44}{space 1}   -0.05{col 53}{space 3}0.964{col 61}{space 4}-.0816727{col 74}{space 3} .0779715
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0496671{col 33}{space 2} .0511253{col 44}{space 1}   -0.97{col 53}{space 3}0.331{col 61}{space 4}-.1499498{col 74}{space 3} .0506156
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} -.007908{col 33}{space 2} .0242308{col 44}{space 1}   -0.33{col 53}{space 3}0.744{col 61}{space 4} -.055437{col 74}{space 3} .0396209
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .022608{col 33}{space 2}  .025115{col 44}{space 1}    0.90{col 53}{space 3}0.368{col 61}{space 4}-.0266553{col 74}{space 3} .0718713
{txt}{space 17}4  {c |}{col 21}{res}{space 2}  .010776{col 33}{space 2} .0309027{col 44}{space 1}    0.35{col 53}{space 3}0.727{col 61}{space 4}  -.04984{col 74}{space 3} .0713919
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0619115{col 33}{space 2} .0384666{col 44}{space 1}    1.61{col 53}{space 3}0.108{col 61}{space 4} -.013541{col 74}{space 3} .1373641
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0575511{col 33}{space 2} .0387848{col 44}{space 1}    1.48{col 53}{space 3}0.138{col 61}{space 4}-.0185256{col 74}{space 3} .1336278
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0184434{col 33}{space 2} .0078423{col 44}{space 1}   -2.35{col 53}{space 3}0.019{col 61}{space 4}-.0338261{col 74}{space 3}-.0030606
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0662612{col 33}{space 2} .0248306{col 44}{space 1}    2.67{col 53}{space 3}0.008{col 61}{space 4} .0175557{col 74}{space 3} .1149668
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .6640144{col 33}{space 2} .0551597{col 44}{space 1}   12.04{col 53}{space 3}0.000{col 61}{space 4} .5558181{col 74}{space 3} .7722108
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *vote choice
. keep if R_had_incumbent_elec==1
{txt}(3,544 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_name, "DIXON, Alan John" ,"CRANSTON, Alan" ,"WIRTH, Timothy E." ,"RUDMAN, Warren Bruce" ,"GARN, Edwin Jacob (Jake)" ,"ADAMS, Brockman (Brock)")
{txt}(359 observations deleted)

{com}. eststo thomas_ols_vc_1: reg  R_vote_inc sen_perceived_thomas_agreement sen_perceived_party_agreement

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,036
{txt}{hline 13}{c +}{hline 34}   F(2, 1033)      = {res}    74.01
{txt}       Model {c |} {res}  31.963911         2  15.9819555   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 223.082421     1,033  .215955877   {txt}R-squared       ={res}    0.1253
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1236
{txt}       Total {c |} {res} 255.046332     1,035  .246421577   {txt}Root MSE        =   {res} .46471

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .0533506{col 33}{space 2} .0173097{col 44}{space 1}    3.08{col 53}{space 3}0.002{col 61}{space 4} .0193844{col 74}{space 3} .0873168
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .2634684{col 33}{space 2}  .022385{col 44}{space 1}   11.77{col 53}{space 3}0.000{col 61}{space 4} .2195431{col 74}{space 3} .3073937
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5445477{col 33}{space 2} .0145209{col 44}{space 1}   37.50{col 53}{space 3}0.000{col 61}{space 4}  .516054{col 74}{space 3} .5730415
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_ols_vc_2: reg  R_vote_inc sen_perceived_thomas_agreement sen_perceived_party_agreement `controls'

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       785
{txt}{hline 13}{c +}{hline 34}   F(15, 769)      = {res}    12.05
{txt}       Model {c |} {res} 37.0527943        15  2.47018629   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 157.591792       769  .204930808   {txt}R-squared       ={res}    0.1904
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.1746
{txt}       Total {c |} {res} 194.644586       784  .248271156   {txt}Root MSE        =   {res} .45269

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .0614166{col 33}{space 2} .0186839{col 44}{space 1}    3.29{col 53}{space 3}0.001{col 61}{space 4} .0247391{col 74}{space 3} .0980941
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .2292529{col 33}{space 2} .0246914{col 44}{space 1}    9.28{col 53}{space 3}0.000{col 61}{space 4} .1807825{col 74}{space 3} .2777234
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0077978{col 33}{space 2} .0775713{col 44}{space 1}   -0.10{col 53}{space 3}0.920{col 61}{space 4}-.1600744{col 74}{space 3} .1444787
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0336519{col 33}{space 2} .0787349{col 44}{space 1}   -0.43{col 53}{space 3}0.669{col 61}{space 4}-.1882127{col 74}{space 3}  .120909
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0856067{col 33}{space 2} .0826269{col 44}{space 1}   -1.04{col 53}{space 3}0.300{col 61}{space 4}-.2478077{col 74}{space 3} .0765942
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0319528{col 33}{space 2} .0327566{col 44}{space 1}   -0.98{col 53}{space 3}0.330{col 61}{space 4}-.0962557{col 74}{space 3}   .03235
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1204491{col 33}{space 2} .0699159{col 44}{space 1}    1.72{col 53}{space 3}0.085{col 61}{space 4}-.0167996{col 74}{space 3} .2576978
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0513319{col 33}{space 2} .0912818{col 44}{space 1}   -0.56{col 53}{space 3}0.574{col 61}{space 4} -.230523{col 74}{space 3} .1278593
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0129698{col 33}{space 2} .0480769{col 44}{space 1}    0.27{col 53}{space 3}0.787{col 61}{space 4}-.0814078{col 74}{space 3} .1073475
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .047805{col 33}{space 2} .0499245{col 44}{space 1}    0.96{col 53}{space 3}0.339{col 61}{space 4}-.0501995{col 74}{space 3} .1458095
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0505173{col 33}{space 2} .0588332{col 44}{space 1}    0.86{col 53}{space 3}0.391{col 61}{space 4}-.0649755{col 74}{space 3} .1660101
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0265768{col 33}{space 2} .0701284{col 44}{space 1}    0.38{col 53}{space 3}0.705{col 61}{space 4} -.111089{col 74}{space 3} .1642426
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0388009{col 33}{space 2} .0694824{col 44}{space 1}    0.56{col 53}{space 3}0.577{col 61}{space 4}-.0975968{col 74}{space 3} .1751987
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0473787{col 33}{space 2} .0193436{col 44}{space 1}    2.45{col 53}{space 3}0.015{col 61}{space 4} .0094061{col 74}{space 3} .0853513
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2854372{col 33}{space 2} .0475808{col 44}{space 1}    6.00{col 53}{space 3}0.000{col 61}{space 4} .1920335{col 74}{space 3} .3788408
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3617208{col 33}{space 2} .1043989{col 44}{space 1}    3.46{col 53}{space 3}0.001{col 61}{space 4} .1567801{col 74}{space 3} .5666615
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab  thomas_iv_approval_1 thomas_iv_approval_2  thomas_iv_vc_1 thomas_iv_vc_2 /// 
>         thomas_ols_approval_1 thomas_ols_approval_2 thomas_ols_vc_1 thomas_ols_vc_2 ///
>         using  "table_06_thomas.tex", /// 
>         keep(sen_perceived_thomas_agreement sen_perceived_party_agreement) nomtitles  ///
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Regressions of voters' assessment of Clarence Thomas\label{c -(}foo{c )-})  
{res}{txt}(output written to {browse  `"table_06_thomas.tex"'})

{com}.         
. *SOTOMAYOR AND KAGAN
.         *note the regsave commands save the IV regressions with controls, for the later analyses comparing effects across issues
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *IV REGRESSIONS
. *approval
. eststo sk_iv_approval_1: ivregress 2sls sen_approval_binary  /// 
>                 (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement) , cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}    14,166
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}   8283.52
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.4086
{txt}{col 51}Root MSE{col 67}=    {res} .38427

{txt}{ralign 85:(Std. Err. adjusted for {res:7,513} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2}  .249788{col 33}{space 2} .0143822{col 44}{space 1}   17.37{col 53}{space 3}0.000{col 61}{space 4} .2215995{col 74}{space 3} .2779766
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2}  .228913{col 33}{space 2} .0107712{col 44}{space 1}   21.25{col 53}{space 3}0.000{col 61}{space 4} .2078019{col 74}{space 3} .2500241
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4966932{col 33}{space 2} .0038085{col 44}{space 1}  130.42{col 53}{space 3}0.000{col 61}{space 4} .4892288{col 74}{space 3} .5041577
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,7512){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.5116{col 29}{space 2}0.5115{col 41}{space 3}0.5116{col 53}{space 3} 5044.78{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.7144{col 29}{space 2}0.7143{col 41}{space 3}0.7144{col 53}{space 3} 13148.4{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}7513{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2375{col 35}{space 6}0.2374
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.3317{col 35}{space 6}0.3316
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo sk_iv_approval_2: ivregress 2sls  sen_approval_binary /// 
>         `controls' (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement),     cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}    13,129
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}  10191.90
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.4335
{txt}{col 51}Root MSE{col 67}=    {res} .37605

{txt}{ralign 85:(Std. Err. adjusted for {res:6,838} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .2328985{col 33}{space 2}  .015355{col 44}{space 1}   15.17{col 53}{space 3}0.000{col 61}{space 4} .2028031{col 74}{space 3} .2629938
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2014221{col 33}{space 2} .0109431{col 44}{space 1}   18.41{col 53}{space 3}0.000{col 61}{space 4} .1799741{col 74}{space 3} .2228702
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0034969{col 33}{space 2} .0291343{col 44}{space 1}   -0.12{col 53}{space 3}0.904{col 61}{space 4} -.060599{col 74}{space 3} .0536052
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0316151{col 33}{space 2} .0292749{col 44}{space 1}   -1.08{col 53}{space 3}0.280{col 61}{space 4} -.088993{col 74}{space 3} .0257627
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0100622{col 33}{space 2} .0298045{col 44}{space 1}   -0.34{col 53}{space 3}0.736{col 61}{space 4} -.068478{col 74}{space 3} .0483536
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0342992{col 33}{space 2} .0079964{col 44}{space 1}    4.29{col 53}{space 3}0.000{col 61}{space 4} .0186266{col 74}{space 3} .0499718
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0435751{col 33}{space 2} .0139705{col 44}{space 1}    3.12{col 53}{space 3}0.002{col 61}{space 4} .0161934{col 74}{space 3} .0709569
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0531573{col 33}{space 2}  .016128{col 44}{space 1}    3.30{col 53}{space 3}0.001{col 61}{space 4} .0215469{col 74}{space 3} .0847677
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0587246{col 33}{space 2} .0184271{col 44}{space 1}   -3.19{col 53}{space 3}0.001{col 61}{space 4} -.094841{col 74}{space 3}-.0226082
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0349268{col 33}{space 2} .0168385{col 44}{space 1}   -2.07{col 53}{space 3}0.038{col 61}{space 4}-.0679296{col 74}{space 3} -.001924
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0268135{col 33}{space 2} .0179094{col 44}{space 1}   -1.50{col 53}{space 3}0.134{col 61}{space 4}-.0619153{col 74}{space 3} .0082883
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0653879{col 33}{space 2} .0162576{col 44}{space 1}    4.02{col 53}{space 3}0.000{col 61}{space 4} .0335237{col 74}{space 3} .0972521
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0749305{col 33}{space 2} .0157843{col 44}{space 1}    4.75{col 53}{space 3}0.000{col 61}{space 4}  .043994{col 74}{space 3} .1058671
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0076056{col 33}{space 2} .0044193{col 44}{space 1}   -1.72{col 53}{space 3}0.085{col 61}{space 4}-.0162672{col 74}{space 3} .0010561
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1153697{col 33}{space 2} .0153852{col 44}{space 1}    7.50{col 53}{space 3}0.000{col 61}{space 4} .0852153{col 74}{space 3} .1455241
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4162368{col 33}{space 2} .0354211{col 44}{space 1}   11.75{col 53}{space 3}0.000{col 61}{space 4} .3468128{col 74}{space 3} .4856608
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, soto_kagan_approval_iv_with_controls) replace
{txt}file saved_regression_results_for_figure7.dta saved

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,6837){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.5346{col 29}{space 2}0.5341{col 41}{space 3}0.3615{col 53}{space 3} 2229.42{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.7229{col 29}{space 2}0.7226{col 41}{space 3}0.5897{col 53}{space 3} 5024.62{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}6838{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2367{col 35}{space 6}0.2357
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.3862{col 35}{space 6}0.3854
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. *vote choice (kagan only)
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. keep if nominee=="kagan"
{txt}(27,978 observations deleted)

{com}. *keep only respondents with senate incumbents
. keep if R_had_incumbent10_elec==1
{txt}(66,230 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_cces_name, "Christopher Dodd", "George LeMieux" , "Roland Burris" , "Evan Bayh", "Samuel Brownback")
{txt}(9,654 observations deleted)

{com}. drop if inlist(sen_cces_name,  "Jim Bunning" , "Christopher 'Kit' Bond" , "Judd Gregg" , "Byron Dorgan" , "George Voinovich"  , "Arlen Specter" , "Robert Bennett")
{txt}(7,938 observations deleted)

{com}. eststo k_iv_vc_1: ivregress 2sls  R_vote_inc  /// 
>         ( sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement), cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,670
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}   6116.63
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7240
{txt}{col 51}Root MSE{col 67}=    {res} .25995

{txt}{ralign 85:(Std. Err. adjusted for {res:1,494} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1421563{col 33}{space 2} .0329501{col 44}{space 1}    4.31{col 53}{space 3}0.000{col 61}{space 4} .0775752{col 74}{space 3} .2067374
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .3977836{col 33}{space 2} .0265102{col 44}{space 1}   15.00{col 53}{space 3}0.000{col 61}{space 4} .3458245{col 74}{space 3} .4497426
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4965256{col 33}{space 2} .0072199{col 44}{space 1}   68.77{col 53}{space 3}0.000{col 61}{space 4} .4823748{col 74}{space 3} .5106765
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,1493){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.6898{col 29}{space 2}0.6894{col 41}{space 3}0.6898{col 53}{space 3}  1700.1{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.8736{col 29}{space 2}0.8734{col 41}{space 3}0.8736{col 53}{space 3} 5951.48{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}1494{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.3361{col 35}{space 6}0.3357
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.4256{col 35}{space 6}0.4253
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo k_iv_vc_2: ivregress 2sls  R_vote_inc `controls'  /// 
>         ( sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement), cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,574
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   8075.26
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7415
{txt}{col 51}Root MSE{col 67}=    {res} .25167

{txt}{ralign 85:(Std. Err. adjusted for {res:1,409} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1303818{col 33}{space 2} .0333274{col 44}{space 1}    3.91{col 53}{space 3}0.000{col 61}{space 4} .0650614{col 74}{space 3} .1957023
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .3881741{col 33}{space 2} .0265902{col 44}{space 1}   14.60{col 53}{space 3}0.000{col 61}{space 4} .3360583{col 74}{space 3} .4402899
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0620734{col 33}{space 2} .0971336{col 44}{space 1}   -0.64{col 53}{space 3}0.523{col 61}{space 4}-.2524517{col 74}{space 3}  .128305
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0183317{col 33}{space 2} .0973479{col 44}{space 1}   -0.19{col 53}{space 3}0.851{col 61}{space 4}-.2091302{col 74}{space 3} .1724667
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0281585{col 33}{space 2} .0980064{col 44}{space 1}   -0.29{col 53}{space 3}0.774{col 61}{space 4}-.2202475{col 74}{space 3} .1639306
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0152657{col 33}{space 2}   .01405{col 44}{space 1}    1.09{col 53}{space 3}0.277{col 61}{space 4}-.0122717{col 74}{space 3} .0428032
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0058768{col 33}{space 2}  .026526{col 44}{space 1}   -0.22{col 53}{space 3}0.825{col 61}{space 4}-.0578668{col 74}{space 3} .0461132
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0079232{col 33}{space 2} .0457987{col 44}{space 1}    0.17{col 53}{space 3}0.863{col 61}{space 4}-.0818405{col 74}{space 3}  .097687
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0293498{col 33}{space 2}  .048853{col 44}{space 1}   -0.60{col 53}{space 3}0.548{col 61}{space 4}-.1250999{col 74}{space 3} .0664003
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0019031{col 33}{space 2} .0460865{col 44}{space 1}    0.04{col 53}{space 3}0.967{col 61}{space 4}-.0884248{col 74}{space 3} .0922311
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0217328{col 33}{space 2} .0464538{col 44}{space 1}   -0.47{col 53}{space 3}0.640{col 61}{space 4}-.1127805{col 74}{space 3} .0693149
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1222251{col 33}{space 2} .0445486{col 44}{space 1}    2.74{col 53}{space 3}0.006{col 61}{space 4} .0349114{col 74}{space 3} .2095387
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .1395658{col 33}{space 2} .0453438{col 44}{space 1}    3.08{col 53}{space 3}0.002{col 61}{space 4} .0506936{col 74}{space 3} .2284381
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0033164{col 33}{space 2} .0142364{col 44}{space 1}   -0.23{col 53}{space 3}0.816{col 61}{space 4}-.0312192{col 74}{space 3} .0245864
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0566768{col 33}{space 2} .0301031{col 44}{space 1}    1.88{col 53}{space 3}0.060{col 61}{space 4}-.0023242{col 74}{space 3} .1156777
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .388923{col 33}{space 2} .1131713{col 44}{space 1}    3.44{col 53}{space 3}0.001{col 61}{space 4} .1671113{col 74}{space 3} .6107348
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, kagan_vote_choice_iv_with_controls) append
{txt}{p 0 7 2}
(note: variable
label was 
str34, now str36 to accommodate using data's values)
{p_end}
file saved_regression_results_for_figure7.dta saved

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,1408){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.7134{col 29}{space 2}0.7106{col 41}{space 3}0.5244{col 53}{space 3} 563.858{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.8773{col 29}{space 2}0.8761{col 41}{space 3}0.7708{col 53}{space 3} 1484.48{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}1409{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.3478{col 35}{space 6}0.3407
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.5113{col 35}{space 6}0.5059
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. 
. *OLS
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. eststo sk_ols_approval_1:       reg sen_approval_binary sen_perc_nominee_agreement sen_perc_party_agreement,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    14,473
                                                {txt}F(2, 7620)        =  {res}  6537.58
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4100
                                                {txt}Root MSE          =    {res} .38384

{txt}{ralign 85:(Std. Err. adjusted for {res:7,621} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1897396{col 33}{space 2} .0062526{col 44}{space 1}   30.35{col 53}{space 3}0.000{col 61}{space 4} .1774827{col 74}{space 3} .2019965
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2372022{col 33}{space 2}  .005745{col 44}{space 1}   41.29{col 53}{space 3}0.000{col 61}{space 4} .2259405{col 74}{space 3}  .248464
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4985318{col 33}{space 2} .0037712{col 44}{space 1}  132.20{col 53}{space 3}0.000{col 61}{space 4} .4911393{col 74}{space 3} .5059244
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_ols_approval_2: reg  sen_approval_binary sen_perc_nominee_agreement sen_perc_party_agreement `controls',  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}    13,129
                                                {txt}F(15, 6837)       =  {res}  1026.18
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4419
                                                {txt}Root MSE          =    {res} .37348

{txt}{ralign 85:(Std. Err. adjusted for {res:6,838} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1636466{col 33}{space 2} .0067061{col 44}{space 1}   24.40{col 53}{space 3}0.000{col 61}{space 4} .1505005{col 74}{space 3} .1767926
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2054262{col 33}{space 2} .0065365{col 44}{space 1}   31.43{col 53}{space 3}0.000{col 61}{space 4} .1926127{col 74}{space 3} .2182397
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0121245{col 33}{space 2}  .028983{col 44}{space 1}   -0.42{col 53}{space 3}0.676{col 61}{space 4}-.0689403{col 74}{space 3} .0446913
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0417402{col 33}{space 2} .0290922{col 44}{space 1}   -1.43{col 53}{space 3}0.151{col 61}{space 4}-.0987699{col 74}{space 3} .0152895
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0197179{col 33}{space 2} .0296137{col 44}{space 1}   -0.67{col 53}{space 3}0.506{col 61}{space 4}-.0777699{col 74}{space 3} .0383341
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0348805{col 33}{space 2} .0079135{col 44}{space 1}    4.41{col 53}{space 3}0.000{col 61}{space 4} .0193676{col 74}{space 3} .0503933
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0420182{col 33}{space 2} .0139944{col 44}{space 1}    3.00{col 53}{space 3}0.003{col 61}{space 4} .0145849{col 74}{space 3} .0694515
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0512645{col 33}{space 2} .0160002{col 44}{space 1}    3.20{col 53}{space 3}0.001{col 61}{space 4} .0198992{col 74}{space 3} .0826298
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0589121{col 33}{space 2} .0182787{col 44}{space 1}   -3.22{col 53}{space 3}0.001{col 61}{space 4} -.094744{col 74}{space 3}-.0230801
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0352785{col 33}{space 2} .0167096{col 44}{space 1}   -2.11{col 53}{space 3}0.035{col 61}{space 4}-.0680346{col 74}{space 3}-.0025225
{txt}{space 17}4  {c |}{col 21}{res}{space 2}  -.02884{col 33}{space 2} .0177484{col 44}{space 1}   -1.62{col 53}{space 3}0.104{col 61}{space 4}-.0636324{col 74}{space 3} .0059524
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0833468{col 33}{space 2} .0161623{col 44}{space 1}    5.16{col 53}{space 3}0.000{col 61}{space 4} .0516636{col 74}{space 3}   .11503
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0734941{col 33}{space 2} .0159051{col 44}{space 1}    4.62{col 53}{space 3}0.000{col 61}{space 4} .0423152{col 74}{space 3} .1046731
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0035303{col 33}{space 2} .0043727{col 44}{space 1}   -0.81{col 53}{space 3}0.419{col 61}{space 4}-.0121022{col 74}{space 3} .0050416
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1751552{col 33}{space 2} .0134238{col 44}{space 1}   13.05{col 53}{space 3}0.000{col 61}{space 4} .1488404{col 74}{space 3}   .20147
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3954283{col 33}{space 2} .0351656{col 44}{space 1}   11.24{col 53}{space 3}0.000{col 61}{space 4} .3264927{col 74}{space 3} .4643639
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. keep if nominee=="kagan"
{txt}(27,978 observations deleted)

{com}. *keep only respondents with senate incumbents
. keep if R_had_incumbent10_elec==1
{txt}(66,230 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_cces_name, "Christopher Dodd", "George LeMieux" , "Roland Burris" , "Evan Bayh", "Samuel Brownback")
{txt}(9,654 observations deleted)

{com}. drop if inlist(sen_cces_name,  "Jim Bunning" , "Christopher 'Kit' Bond" , "Judd Gregg" , "Byron Dorgan" , "George Voinovich"  , "Arlen Specter" , "Robert Bennett")
{txt}(7,938 observations deleted)

{com}. eststo sk_ols_vc_1:     reg R_vote_inc sen_perc_nominee_agreement sen_perc_party_agreement,  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     1,671
                                                {txt}F(2, 1494)        =  {res}  5222.98
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7308
                                                {txt}Root MSE          =    {res} .25693

{txt}{ralign 85:(Std. Err. adjusted for {res:1,495} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1572463{col 33}{space 2} .0159207{col 44}{space 1}    9.88{col 53}{space 3}0.000{col 61}{space 4} .1260169{col 74}{space 3} .1884757
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .3440195{col 33}{space 2} .0148605{col 44}{space 1}   23.15{col 53}{space 3}0.000{col 61}{space 4}   .31487{col 74}{space 3} .3731691
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5030815{col 33}{space 2} .0070178{col 44}{space 1}   71.69{col 53}{space 3}0.000{col 61}{space 4} .4893157{col 74}{space 3} .5168472
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_ols_vc_2:     reg  R_vote_inc sen_perc_nominee_agreement sen_perc_party_agreement `controls',  cluster(case_id_new)

{txt}Linear regression                               Number of obs     = {res}     1,574
                                                {txt}F(15, 1408)       =  {res}   929.59
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7542
                                                {txt}Root MSE          =    {res} .24667

{txt}{ralign 85:(Std. Err. adjusted for {res:1,409} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1334351{col 33}{space 2} .0164923{col 44}{space 1}    8.09{col 53}{space 3}0.000{col 61}{space 4} .1010831{col 74}{space 3} .1657872
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .3053461{col 33}{space 2} .0171687{col 44}{space 1}   17.79{col 53}{space 3}0.000{col 61}{space 4} .2716671{col 74}{space 3} .3390251
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0781842{col 33}{space 2} .0899023{col 44}{space 1}   -0.87{col 53}{space 3}0.385{col 61}{space 4}-.2545411{col 74}{space 3} .0981728
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0374976{col 33}{space 2}  .090011{col 44}{space 1}   -0.42{col 53}{space 3}0.677{col 61}{space 4}-.2140678{col 74}{space 3} .1390726
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0527693{col 33}{space 2} .0907609{col 44}{space 1}   -0.58{col 53}{space 3}0.561{col 61}{space 4}-.2308104{col 74}{space 3} .1252719
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0196816{col 33}{space 2} .0138054{col 44}{space 1}    1.43{col 53}{space 3}0.154{col 61}{space 4}-.0073998{col 74}{space 3} .0467631
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0192036{col 33}{space 2} .0276209{col 44}{space 1}   -0.70{col 53}{space 3}0.487{col 61}{space 4}-.0733862{col 74}{space 3}  .034979
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0129789{col 33}{space 2}  .043464{col 44}{space 1}    0.30{col 53}{space 3}0.765{col 61}{space 4}-.0722823{col 74}{space 3} .0982401
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0392063{col 33}{space 2}  .047115{col 44}{space 1}   -0.83{col 53}{space 3}0.405{col 61}{space 4}-.1316294{col 74}{space 3} .0532169
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0163875{col 33}{space 2} .0441832{col 44}{space 1}   -0.37{col 53}{space 3}0.711{col 61}{space 4}-.1030595{col 74}{space 3} .0702845
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.044305{col 33}{space 2} .0443525{col 44}{space 1}   -1.00{col 53}{space 3}0.318{col 61}{space 4} -.131309{col 74}{space 3}  .042699
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1476647{col 33}{space 2} .0436202{col 44}{space 1}    3.39{col 53}{space 3}0.001{col 61}{space 4} .0620972{col 74}{space 3} .2332322
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .1368087{col 33}{space 2} .0441944{col 44}{space 1}    3.10{col 53}{space 3}0.002{col 61}{space 4} .0501147{col 74}{space 3} .2235027
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0074154{col 33}{space 2} .0141743{col 44}{space 1}    0.52{col 53}{space 3}0.601{col 61}{space 4}-.0203896{col 74}{space 3} .0352204
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1683506{col 33}{space 2}  .029938{col 44}{space 1}    5.62{col 53}{space 3}0.000{col 61}{space 4} .1096228{col 74}{space 3} .2270785
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3795981{col 33}{space 2} .1059101{col 44}{space 1}    3.58{col 53}{space 3}0.000{col 61}{space 4} .1718396{col 74}{space 3} .5873567
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab  sk_iv_approval_1 sk_iv_approval_2  k_iv_vc_1 k_iv_vc_2  /// 
>         sk_ols_approval_1 sk_ols_approval_2  sk_ols_vc_1 sk_ols_vc_2 ///
>         using  "table_06_soto_kagan.tex", /// 
>         keep(sen_perc_nominee_agreement sen_perc_party_agreement) nomtitles  ///
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Regressions of voters' assessment of Sotomayor and Kagan\label{c -(}foo{c )-})      
{res}{txt}(output written to {browse  `"table_06_soto_kagan.tex"'})

{com}.         
. ************************************
. *Table A-8: Regression models evaluating whether perceptions about nominee votes affect evaluation of senators, with standard errors clustered on senators.
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *IV REGRESSIONS
. eststo thomas_iv_approval_1_sc: ivregress 2sls sen_approval_binary ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement), cluster(sen_icpsr) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     3,674
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}     11.28
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0036
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.0152
{txt}{col 51}Root MSE{col 67}=    {res} .39959

{txt}{ralign 85:(Std. Err. adjusted for {res:92} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .0786136{col 33}{space 2} .0696087{col 44}{space 1}    1.13{col 53}{space 3}0.259{col 61}{space 4}-.0578169{col 74}{space 3} .2150441
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2}  .153311{col 33}{space 2} .0555547{col 44}{space 1}    2.76{col 53}{space 3}0.006{col 61}{space 4} .0444258{col 74}{space 3} .2621961
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .787021{col 33}{space 2} .0124268{col 44}{space 1}   63.33{col 53}{space 3}0.000{col 61}{space 4}  .762665{col 74}{space 3}  .811377
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}    F(2,91){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0232{col 29}{space 2}0.0227{col 41}{space 3}0.0232{col 53}{space 3} 7.17245{col 65}{space 3}0.0013
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.1618{col 29}{space 2}0.1614{col 41}{space 3}0.1618{col 53}{space 3}  35.511{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}92{txt} clusters in sen_icpsr)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0171{col 35}{space 6}0.0169
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.1193{col 35}{space 6}0.1191
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo thomas_iv_approval_2_sc:ivregress 2sls  sen_approval_binary `controls' ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement), cluster(case_id)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     2,561
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}     54.05
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.0476
{txt}{col 51}Root MSE{col 67}=    {res} .40621

{txt}{ralign 85:(Std. Err. adjusted for {res:1,537} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2}  .069762{col 33}{space 2} .0667037{col 44}{space 1}    1.05{col 53}{space 3}0.296{col 61}{space 4}-.0609748{col 74}{space 3} .2004988
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .1152905{col 33}{space 2} .0426191{col 44}{space 1}    2.71{col 53}{space 3}0.007{col 61}{space 4} .0317585{col 74}{space 3} .1988224
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0140024{col 33}{space 2} .0378169{col 44}{space 1}   -0.37{col 53}{space 3}0.711{col 61}{space 4}-.0881221{col 74}{space 3} .0601173
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0105511{col 33}{space 2} .0386885{col 44}{space 1}    0.27{col 53}{space 3}0.785{col 61}{space 4} -.065277{col 74}{space 3} .0863792
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0130646{col 33}{space 2} .0420551{col 44}{space 1}   -0.31{col 53}{space 3}0.756{col 61}{space 4}-.0954911{col 74}{space 3} .0693618
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0454189{col 33}{space 2}  .016837{col 44}{space 1}    2.70{col 53}{space 3}0.007{col 61}{space 4}  .012419{col 74}{space 3} .0784187
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0088777{col 33}{space 2} .0407599{col 44}{space 1}    0.22{col 53}{space 3}0.828{col 61}{space 4}-.0710102{col 74}{space 3} .0887656
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0533927{col 33}{space 2} .0508208{col 44}{space 1}   -1.05{col 53}{space 3}0.293{col 61}{space 4}-.1529995{col 74}{space 3} .0462142
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0106076{col 33}{space 2}  .024423{col 44}{space 1}   -0.43{col 53}{space 3}0.664{col 61}{space 4}-.0584757{col 74}{space 3} .0372605
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .023508{col 33}{space 2} .0249009{col 44}{space 1}    0.94{col 53}{space 3}0.345{col 61}{space 4}-.0252969{col 74}{space 3}  .072313
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0128488{col 33}{space 2} .0306884{col 44}{space 1}    0.42{col 53}{space 3}0.675{col 61}{space 4}-.0472994{col 74}{space 3}  .072997
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0483484{col 33}{space 2} .0399208{col 44}{space 1}    1.21{col 53}{space 3}0.226{col 61}{space 4}-.0298949{col 74}{space 3} .1265917
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0784006{col 33}{space 2} .0415719{col 44}{space 1}    1.89{col 53}{space 3}0.059{col 61}{space 4}-.0030788{col 74}{space 3}   .15988
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0204231{col 33}{space 2} .0079124{col 44}{space 1}   -2.58{col 53}{space 3}0.010{col 61}{space 4}-.0359311{col 74}{space 3}-.0049152
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0483283{col 33}{space 2} .0265395{col 44}{space 1}    1.82{col 53}{space 3}0.069{col 61}{space 4}-.0036882{col 74}{space 3} .1003448
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .6691923{col 33}{space 2} .0554792{col 44}{space 1}   12.06{col 53}{space 3}0.000{col 61}{space 4} .5604551{col 74}{space 3} .7779295
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,1536){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0364{col 29}{space 2}0.0307{col 41}{space 3}0.0276{col 53}{space 3} 26.3206{col 65}{space 3}0.0000
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.2322{col 29}{space 2}0.2276{col 41}{space 3}0.1415{col 53}{space 3} 159.276{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}1537{txt} clusters in case_id)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0197{col 35}{space 6}0.0131
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.1008{col 35}{space 6}0.0948
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. *vote choice
. keep if R_had_incumbent_elec==1
{txt}(3,544 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_name, "DIXON, Alan John" ,"CRANSTON, Alan" ,"WIRTH, Timothy E." ,"RUDMAN, Warren Bruce" ,"GARN, Edwin Jacob (Jake)" ,"ADAMS, Brockman (Brock)")
{txt}(359 observations deleted)

{com}. eststo thomas_iv_vc_1_sc: ivregress 2sls  R_vote_inc ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement), cluster(sen_icpsr) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,036
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}     47.83
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res} .68327

{txt}{ralign 85:(Std. Err. adjusted for {res:29} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .6412083{col 33}{space 2} 1.131537{col 44}{space 1}    0.57{col 53}{space 3}0.571{col 61}{space 4}-1.576563{col 74}{space 3} 2.858979
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .4270505{col 33}{space 2} .0749743{col 44}{space 1}    5.70{col 53}{space 3}0.000{col 61}{space 4} .2801036{col 74}{space 3} .5739974
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5027945{col 33}{space 2} .0736568{col 44}{space 1}    6.83{col 53}{space 3}0.000{col 61}{space 4} .3584298{col 74}{space 3} .6471592
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}    F(2,28){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0034{col 29}{space 2}0.0014{col 41}{space 3}0.0034{col 53}{space 3} .354135{col 65}{space 3}0.7049
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.3946{col 29}{space 2}0.3934{col 41}{space 3}0.3946{col 53}{space 3} 55.9052{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}29{txt} clusters in sen_icpsr)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0020{col 35}{space 6}0.0011
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.2368{col 35}{space 6}0.2361
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo thomas_iv_vc_2_sc: ivregress 2sls  R_vote_inc `controls' ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement), cluster(sen_icpsr) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}       785
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}    223.80
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res} .64945

{txt}{ralign 85:(Std. Err. adjusted for {res:29} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .6012027{col 33}{space 2} 1.201204{col 44}{space 1}    0.50{col 53}{space 3}0.617{col 61}{space 4}-1.753113{col 74}{space 3} 2.955519
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .3147148{col 33}{space 2} .1313584{col 44}{space 1}    2.40{col 53}{space 3}0.017{col 61}{space 4}  .057257{col 74}{space 3} .5721726
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0236609{col 33}{space 2} .1247256{col 44}{space 1}   -0.19{col 53}{space 3}0.850{col 61}{space 4}-.2681186{col 74}{space 3} .2207968
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0421756{col 33}{space 2} .1102017{col 44}{space 1}   -0.38{col 53}{space 3}0.702{col 61}{space 4}-.2581669{col 74}{space 3} .1738158
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.1479457{col 33}{space 2} .1960372{col 44}{space 1}   -0.75{col 53}{space 3}0.450{col 61}{space 4}-.5321715{col 74}{space 3} .2362801
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0039414{col 33}{space 2} .0800723{col 44}{space 1}   -0.05{col 53}{space 3}0.961{col 61}{space 4}-.1608803{col 74}{space 3} .1529975
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1110502{col 33}{space 2} .1055987{col 44}{space 1}    1.05{col 53}{space 3}0.293{col 61}{space 4}-.0959196{col 74}{space 3} .3180199
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0404216{col 33}{space 2} .1191696{col 44}{space 1}   -0.34{col 53}{space 3}0.734{col 61}{space 4}-.2739898{col 74}{space 3} .1931466
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0188811{col 33}{space 2} .0697942{col 44}{space 1}    0.27{col 53}{space 3}0.787{col 61}{space 4}-.1179131{col 74}{space 3} .1556752
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .1321034{col 33}{space 2} .2118317{col 44}{space 1}    0.62{col 53}{space 3}0.533{col 61}{space 4}-.2830791{col 74}{space 3}  .547286
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .1052488{col 33}{space 2}  .164344{col 44}{space 1}    0.64{col 53}{space 3}0.522{col 61}{space 4}-.2168595{col 74}{space 3}  .427357
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}-.0351627{col 33}{space 2} .1878692{col 44}{space 1}   -0.19{col 53}{space 3}0.852{col 61}{space 4}-.4033796{col 74}{space 3} .3330542
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2}-.0542696{col 33}{space 2} .2392755{col 44}{space 1}   -0.23{col 53}{space 3}0.821{col 61}{space 4}-.5232409{col 74}{space 3} .4147017
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0522043{col 33}{space 2} .0302697{col 44}{space 1}    1.72{col 53}{space 3}0.085{col 61}{space 4}-.0071233{col 74}{space 3} .1115319
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2288648{col 33}{space 2} .0623551{col 44}{space 1}    3.67{col 53}{space 3}0.000{col 61}{space 4} .1066511{col 74}{space 3} .3510785
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4152283{col 33}{space 2} .1805209{col 44}{space 1}    2.30{col 53}{space 3}0.021{col 61}{space 4} .0614139{col 74}{space 3} .7690428
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}    F(2,28){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0190{col 29}{space 2}-0.0002{col 41}{space 3}0.0054{col 53}{space 3} .915934{col 65}{space 3}0.4118
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.4222{col 29}{space 2}0.4109{col 41}{space 3}0.3871{col 53}{space 3} 51.1601{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}29{txt} clusters in sen_icpsr)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0018{col 35}{space 6}-0.0203
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.1280{col 35}{space 6}0.1087
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. *OLS
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. eststo thomas_ols_approval_1_sc: reg sen_approval_binary sen_perceived_thomas_agreement sen_perceived_party_agreement,  cluster(sen_icpsr) 

{txt}Linear regression                               Number of obs     = {res}     3,674
                                                {txt}F(2, 91)          =  {res}    63.85
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0506
                                                {txt}Root MSE          =    {res} .39252

{txt}{ralign 85:(Std. Err. adjusted for {res:92} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .1055287{col 33}{space 2} .0094368{col 44}{space 1}   11.18{col 53}{space 3}0.000{col 61}{space 4} .0867837{col 74}{space 3} .1242736
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2}  .030134{col 33}{space 2} .0176781{col 44}{space 1}    1.70{col 53}{space 3}0.092{col 61}{space 4}-.0049813{col 74}{space 3} .0652493
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .7870109{col 33}{space 2} .0113756{col 44}{space 1}   69.18{col 53}{space 3}0.000{col 61}{space 4} .7644148{col 74}{space 3} .8096071
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_ols_approval_2_sc: reg sen_approval_binary sen_perceived_thomas_agreement sen_perceived_party_agreement `controls',   cluster(case_id)

{txt}Linear regression                               Number of obs     = {res}     2,561
                                                {txt}F(15, 1536)       =  {res}    10.76
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0720
                                                {txt}Root MSE          =    {res} .40222

{txt}{ralign 85:(Std. Err. adjusted for {res:1,537} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .1109794{col 33}{space 2} .0099603{col 44}{space 1}   11.14{col 53}{space 3}0.000{col 61}{space 4} .0914421{col 74}{space 3} .1305166
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .0252471{col 33}{space 2} .0143531{col 44}{space 1}    1.76{col 53}{space 3}0.079{col 61}{space 4}-.0029067{col 74}{space 3} .0534008
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0162978{col 33}{space 2} .0381661{col 44}{space 1}   -0.43{col 53}{space 3}0.669{col 61}{space 4}-.0911609{col 74}{space 3} .0585654
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .007053{col 33}{space 2}   .03928{col 44}{space 1}    0.18{col 53}{space 3}0.858{col 61}{space 4}-.0699951{col 74}{space 3} .0841011
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.019756{col 33}{space 2} .0419697{col 44}{space 1}   -0.47{col 53}{space 3}0.638{col 61}{space 4}-.1020799{col 74}{space 3}  .062568
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0466107{col 33}{space 2} .0169382{col 44}{space 1}    2.75{col 53}{space 3}0.006{col 61}{space 4} .0133862{col 74}{space 3} .0798351
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0018506{col 33}{space 2} .0406942{col 44}{space 1}   -0.05{col 53}{space 3}0.964{col 61}{space 4}-.0816727{col 74}{space 3} .0779715
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0496671{col 33}{space 2} .0511253{col 44}{space 1}   -0.97{col 53}{space 3}0.331{col 61}{space 4}-.1499498{col 74}{space 3} .0506156
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} -.007908{col 33}{space 2} .0242308{col 44}{space 1}   -0.33{col 53}{space 3}0.744{col 61}{space 4} -.055437{col 74}{space 3} .0396209
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .022608{col 33}{space 2}  .025115{col 44}{space 1}    0.90{col 53}{space 3}0.368{col 61}{space 4}-.0266553{col 74}{space 3} .0718713
{txt}{space 17}4  {c |}{col 21}{res}{space 2}  .010776{col 33}{space 2} .0309027{col 44}{space 1}    0.35{col 53}{space 3}0.727{col 61}{space 4}  -.04984{col 74}{space 3} .0713919
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0619115{col 33}{space 2} .0384666{col 44}{space 1}    1.61{col 53}{space 3}0.108{col 61}{space 4} -.013541{col 74}{space 3} .1373641
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0575511{col 33}{space 2} .0387848{col 44}{space 1}    1.48{col 53}{space 3}0.138{col 61}{space 4}-.0185256{col 74}{space 3} .1336278
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0184434{col 33}{space 2} .0078423{col 44}{space 1}   -2.35{col 53}{space 3}0.019{col 61}{space 4}-.0338261{col 74}{space 3}-.0030606
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0662612{col 33}{space 2} .0248306{col 44}{space 1}    2.67{col 53}{space 3}0.008{col 61}{space 4} .0175557{col 74}{space 3} .1149668
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .6640144{col 33}{space 2} .0551597{col 44}{space 1}   12.04{col 53}{space 3}0.000{col 61}{space 4} .5558181{col 74}{space 3} .7722108
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *vote choice
. keep if R_had_incumbent_elec==1
{txt}(3,544 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_name, "DIXON, Alan John" ,"CRANSTON, Alan" ,"WIRTH, Timothy E." ,"RUDMAN, Warren Bruce" ,"GARN, Edwin Jacob (Jake)" ,"ADAMS, Brockman (Brock)")
{txt}(359 observations deleted)

{com}. eststo thomas_ols_vc_1_sc: reg  R_vote_inc sen_perceived_thomas_agreement sen_perceived_party_agreement, cluster(sen_icpsr) 

{txt}Linear regression                               Number of obs     = {res}     1,036
                                                {txt}F(2, 28)          =  {res}    83.10
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1253
                                                {txt}Root MSE          =    {res} .46471

{txt}{ralign 85:(Std. Err. adjusted for {res:29} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .0533506{col 33}{space 2} .0179186{col 44}{space 1}    2.98{col 53}{space 3}0.006{col 61}{space 4}  .016646{col 74}{space 3} .0900552
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .2634684{col 33}{space 2} .0204399{col 44}{space 1}   12.89{col 53}{space 3}0.000{col 61}{space 4} .2215991{col 74}{space 3} .3053377
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5445477{col 33}{space 2}  .040689{col 44}{space 1}   13.38{col 53}{space 3}0.000{col 61}{space 4}    .4612{col 74}{space 3} .6278954
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo thomas_ols_vc_2_sc: reg  R_vote_inc sen_perceived_thomas_agreement sen_perceived_party_agreement `controls', cluster(sen_icpsr) 

{txt}Linear regression                               Number of obs     = {res}       785
                                                {txt}F(15, 28)         =  {res}    52.10
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1904
                                                {txt}Root MSE          =    {res} .45269

{txt}{ralign 85:(Std. Err. adjusted for {res:29} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .0614166{col 33}{space 2} .0198619{col 44}{space 1}    3.09{col 53}{space 3}0.004{col 61}{space 4} .0207313{col 74}{space 3} .1021019
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .2292529{col 33}{space 2} .0240201{col 44}{space 1}    9.54{col 53}{space 3}0.000{col 61}{space 4} .1800499{col 74}{space 3} .2784559
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0077978{col 33}{space 2} .0884917{col 44}{space 1}   -0.09{col 53}{space 3}0.930{col 61}{space 4}-.1890648{col 74}{space 3} .1734691
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0336519{col 33}{space 2} .0795099{col 44}{space 1}   -0.42{col 53}{space 3}0.675{col 61}{space 4}-.1965205{col 74}{space 3} .1292168
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0856067{col 33}{space 2} .0827398{col 44}{space 1}   -1.03{col 53}{space 3}0.310{col 61}{space 4}-.2550914{col 74}{space 3}  .083878
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0319528{col 33}{space 2}   .03905{col 44}{space 1}   -0.82{col 53}{space 3}0.420{col 61}{space 4}-.1119431{col 74}{space 3} .0480374
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1204491{col 33}{space 2} .0867889{col 44}{space 1}    1.39{col 53}{space 3}0.176{col 61}{space 4}  -.05733{col 74}{space 3} .2982281
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0513319{col 33}{space 2} .0911892{col 44}{space 1}   -0.56{col 53}{space 3}0.578{col 61}{space 4}-.2381245{col 74}{space 3} .1354608
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0129698{col 33}{space 2} .0387417{col 44}{space 1}    0.33{col 53}{space 3}0.740{col 61}{space 4}-.0663889{col 74}{space 3} .0923286
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .047805{col 33}{space 2} .0544209{col 44}{space 1}    0.88{col 53}{space 3}0.387{col 61}{space 4}-.0636711{col 74}{space 3} .1592812
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0505173{col 33}{space 2} .0576017{col 44}{space 1}    0.88{col 53}{space 3}0.388{col 61}{space 4}-.0674745{col 74}{space 3}  .168509
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0265768{col 33}{space 2} .0836697{col 44}{space 1}    0.32{col 53}{space 3}0.753{col 61}{space 4}-.1448128{col 74}{space 3} .1979663
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0388009{col 33}{space 2}  .088725{col 44}{space 1}    0.44{col 53}{space 3}0.665{col 61}{space 4} -.142944{col 74}{space 3} .2205459
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0473787{col 33}{space 2} .0271488{col 44}{space 1}    1.75{col 53}{space 3}0.092{col 61}{space 4} -.008233{col 74}{space 3} .1029904
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2854372{col 33}{space 2} .0471018{col 44}{space 1}    6.06{col 53}{space 3}0.000{col 61}{space 4} .1889535{col 74}{space 3} .3819208
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3617208{col 33}{space 2} .1324221{col 44}{space 1}    2.73{col 53}{space 3}0.011{col 61}{space 4} .0904664{col 74}{space 3} .6329752
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab  thomas_iv_approval_1_sc thomas_iv_approval_2_sc  thomas_iv_vc_1_sc thomas_iv_vc_2_sc /// 
>         thomas_ols_approval_1_sc thomas_ols_approval_2_sc thomas_ols_vc_1_sc thomas_ols_vc_2_sc ///
>         using  "table_A8_thomas.tex", /// 
>         keep(sen_perceived_thomas_agreement sen_perceived_party_agreement) nomtitles  ///
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Regressions of voters' assessment of Clarence Thomas, with SEs clustered on senators\label{c -(}foo{c )-})  
{res}{txt}(output written to {browse  `"table_A8_thomas.tex"'})

{com}.         
. 
. *SOTOMAYOR AND KAGAN
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *IV REGRESSIONS
. *approval
. eststo sk_iv_approval_1_sc: ivregress 2sls sen_approval_binary  (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement) , cluster(sen_icpsr) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}    14,147
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}   1812.72
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.4093
{txt}{col 51}Root MSE{col 67}=    {res} .38405

{txt}{ralign 85:(Std. Err. adjusted for {res:101} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .2497626{col 33}{space 2} .0159633{col 44}{space 1}   15.65{col 53}{space 3}0.000{col 61}{space 4} .2184751{col 74}{space 3} .2810501
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2288891{col 33}{space 2} .0135679{col 44}{space 1}   16.87{col 53}{space 3}0.000{col 61}{space 4} .2022964{col 74}{space 3} .2554818
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4970267{col 33}{space 2} .0073796{col 44}{space 1}   67.35{col 53}{space 3}0.000{col 61}{space 4}  .482563{col 74}{space 3} .5114904
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,100){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.5118{col 29}{space 2}0.5117{col 41}{space 3}0.5118{col 53}{space 3} 549.931{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.7144{col 29}{space 2}0.7143{col 41}{space 3}0.7144{col 53}{space 3} 2688.19{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}101{txt} clusters in sen_icpsr)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2376{col 35}{space 6}0.2376
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.3317{col 35}{space 6}0.3317
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo sk_iv_approval_2_sc: ivregress 2sls  sen_approval_binary  `controls' (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement), ///
>         cluster(sen_icpsr) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}    13,129
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   3786.86
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.4335
{txt}{col 51}Root MSE{col 67}=    {res} .37605

{txt}{ralign 85:(Std. Err. adjusted for {res:101} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .2328985{col 33}{space 2} .0170844{col 44}{space 1}   13.63{col 53}{space 3}0.000{col 61}{space 4} .1994136{col 74}{space 3} .2663833
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2014221{col 33}{space 2} .0148936{col 44}{space 1}   13.52{col 53}{space 3}0.000{col 61}{space 4} .1722312{col 74}{space 3} .2306131
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0034969{col 33}{space 2} .0252285{col 44}{space 1}   -0.14{col 53}{space 3}0.890{col 61}{space 4}-.0529439{col 74}{space 3} .0459501
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0316151{col 33}{space 2} .0278532{col 44}{space 1}   -1.14{col 53}{space 3}0.256{col 61}{space 4}-.0862064{col 74}{space 3} .0229762
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0100622{col 33}{space 2} .0257049{col 44}{space 1}   -0.39{col 53}{space 3}0.695{col 61}{space 4}-.0604428{col 74}{space 3} .0403185
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0342992{col 33}{space 2} .0070875{col 44}{space 1}    4.84{col 53}{space 3}0.000{col 61}{space 4} .0204081{col 74}{space 3} .0481904
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0435751{col 33}{space 2} .0120567{col 44}{space 1}    3.61{col 53}{space 3}0.000{col 61}{space 4} .0199445{col 74}{space 3} .0672058
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0531573{col 33}{space 2} .0158642{col 44}{space 1}    3.35{col 53}{space 3}0.001{col 61}{space 4}  .022064{col 74}{space 3} .0842507
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0587246{col 33}{space 2} .0183543{col 44}{space 1}   -3.20{col 53}{space 3}0.001{col 61}{space 4}-.0946984{col 74}{space 3}-.0227508
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0349268{col 33}{space 2} .0152106{col 44}{space 1}   -2.30{col 53}{space 3}0.022{col 61}{space 4}-.0647391{col 74}{space 3}-.0051145
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0268135{col 33}{space 2} .0180232{col 44}{space 1}   -1.49{col 53}{space 3}0.137{col 61}{space 4}-.0621384{col 74}{space 3} .0085114
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0653879{col 33}{space 2} .0154764{col 44}{space 1}    4.23{col 53}{space 3}0.000{col 61}{space 4} .0350547{col 74}{space 3}  .095721
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0749305{col 33}{space 2} .0165664{col 44}{space 1}    4.52{col 53}{space 3}0.000{col 61}{space 4}  .042461{col 74}{space 3} .1074001
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0076056{col 33}{space 2} .0037954{col 44}{space 1}   -2.00{col 53}{space 3}0.045{col 61}{space 4}-.0150444{col 74}{space 3}-.0001667
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1153697{col 33}{space 2} .0140504{col 44}{space 1}    8.21{col 53}{space 3}0.000{col 61}{space 4} .0878314{col 74}{space 3}  .142908
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4162368{col 33}{space 2} .0306029{col 44}{space 1}   13.60{col 53}{space 3}0.000{col 61}{space 4} .3562562{col 74}{space 3} .4762174
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,100){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.5346{col 29}{space 2}0.5341{col 41}{space 3}0.3615{col 53}{space 3}  673.58{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.7229{col 29}{space 2}0.7226{col 41}{space 3}0.5897{col 53}{space 3} 1949.19{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}101{txt} clusters in sen_icpsr)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2367{col 35}{space 6}0.2357
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.3862{col 35}{space 6}0.3854
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. *vote choice (kagan only)
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. keep if nominee=="kagan"
{txt}(27,978 observations deleted)

{com}. *keep only respondents with senate incumbents
. keep if R_had_incumbent10_elec==1
{txt}(66,230 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_cces_name, "Christopher Dodd", "George LeMieux" , "Roland Burris" , "Evan Bayh", "Samuel Brownback")
{txt}(9,654 observations deleted)

{com}. drop if inlist(sen_cces_name,  "Jim Bunning" , "Christopher 'Kit' Bond" , "Judd Gregg" , "Byron Dorgan" , "George Voinovich"  , "Arlen Specter" , "Robert Bennett")
{txt}(7,938 observations deleted)

{com}. eststo k_iv_vc_1_sc: ivregress 2sls  R_vote_inc ( sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement), cluster(sen_icpsr) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,670
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}   5716.23
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7240
{txt}{col 51}Root MSE{col 67}=    {res} .25995

{txt}{ralign 85:(Std. Err. adjusted for {res:23} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1421563{col 33}{space 2} .0375237{col 44}{space 1}    3.79{col 53}{space 3}0.000{col 61}{space 4} .0686112{col 74}{space 3} .2157013
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .3977836{col 33}{space 2} .0317578{col 44}{space 1}   12.53{col 53}{space 3}0.000{col 61}{space 4} .3355394{col 74}{space 3} .4600278
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4965256{col 33}{space 2} .0090446{col 44}{space 1}   54.90{col 53}{space 3}0.000{col 61}{space 4} .4787986{col 74}{space 3} .5142527
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}    F(2,22){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.6898{col 29}{space 2}0.6894{col 41}{space 3}0.6898{col 53}{space 3} 789.779{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.8736{col 29}{space 2}0.8734{col 41}{space 3}0.8736{col 53}{space 3} 3064.38{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}23{txt} clusters in sen_icpsr)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.3361{col 35}{space 6}0.3357
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.4256{col 35}{space 6}0.4253
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo k_iv_vc_2_sc: ivregress 2sls  R_vote_inc `controls' ( sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement), cluster(sen_icpsr) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,574
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res} 120651.62
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7415
{txt}{col 51}Root MSE{col 67}=    {res} .25167

{txt}{ralign 85:(Std. Err. adjusted for {res:23} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1303818{col 33}{space 2} .0473359{col 44}{space 1}    2.75{col 53}{space 3}0.006{col 61}{space 4} .0376051{col 74}{space 3} .2231585
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .3881741{col 33}{space 2} .0324955{col 44}{space 1}   11.95{col 53}{space 3}0.000{col 61}{space 4} .3244841{col 74}{space 3}  .451864
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0620734{col 33}{space 2} .1235263{col 44}{space 1}   -0.50{col 53}{space 3}0.615{col 61}{space 4}-.3041804{col 74}{space 3} .1800336
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0183317{col 33}{space 2} .1356122{col 44}{space 1}   -0.14{col 53}{space 3}0.892{col 61}{space 4}-.2841268{col 74}{space 3} .2474633
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0281585{col 33}{space 2} .1311109{col 44}{space 1}   -0.21{col 53}{space 3}0.830{col 61}{space 4}-.2851311{col 74}{space 3} .2288142
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0152657{col 33}{space 2} .0153638{col 44}{space 1}    0.99{col 53}{space 3}0.320{col 61}{space 4}-.0148468{col 74}{space 3} .0453783
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0058768{col 33}{space 2} .0415903{col 44}{space 1}   -0.14{col 53}{space 3}0.888{col 61}{space 4}-.0873924{col 74}{space 3} .0756387
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0079232{col 33}{space 2} .0324259{col 44}{space 1}    0.24{col 53}{space 3}0.807{col 61}{space 4}-.0556303{col 74}{space 3} .0714768
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0293498{col 33}{space 2} .0332812{col 44}{space 1}   -0.88{col 53}{space 3}0.378{col 61}{space 4}-.0945798{col 74}{space 3} .0358802
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0019031{col 33}{space 2} .0336079{col 44}{space 1}    0.06{col 53}{space 3}0.955{col 61}{space 4}-.0639672{col 74}{space 3} .0677735
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0217328{col 33}{space 2} .0326339{col 44}{space 1}   -0.67{col 53}{space 3}0.505{col 61}{space 4} -.085694{col 74}{space 3} .0422284
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1222251{col 33}{space 2} .0364377{col 44}{space 1}    3.35{col 53}{space 3}0.001{col 61}{space 4} .0508085{col 74}{space 3} .1936417
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .1395658{col 33}{space 2} .0365499{col 44}{space 1}    3.82{col 53}{space 3}0.000{col 61}{space 4} .0679294{col 74}{space 3} .2112022
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0033164{col 33}{space 2} .0121256{col 44}{space 1}   -0.27{col 53}{space 3}0.784{col 61}{space 4} -.027082{col 74}{space 3} .0204492
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0566768{col 33}{space 2} .0319684{col 44}{space 1}    1.77{col 53}{space 3}0.076{col 61}{space 4}-.0059801{col 74}{space 3} .1193336
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .388923{col 33}{space 2} .1086989{col 44}{space 1}    3.58{col 53}{space 3}0.000{col 61}{space 4} .1758771{col 74}{space 3}  .601969
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. *OLS
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. eststo sk_ols_approval_1_sc:    reg sen_approval_binary sen_perc_nominee_agreement sen_perc_party_agreement,  cluster(sen_icpsr) 

{txt}Linear regression                               Number of obs     = {res}    14,322
                                                {txt}F(2, 100)         =  {res}  1793.78
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4118
                                                {txt}Root MSE          =    {res} .38327

{txt}{ralign 85:(Std. Err. adjusted for {res:101} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1899799{col 33}{space 2} .0075613{col 44}{space 1}   25.13{col 53}{space 3}0.000{col 61}{space 4} .1749786{col 74}{space 3} .2049812
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2368183{col 33}{space 2} .0100267{col 44}{space 1}   23.62{col 53}{space 3}0.000{col 61}{space 4} .2169255{col 74}{space 3}  .256711
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4984826{col 33}{space 2} .0075275{col 44}{space 1}   66.22{col 53}{space 3}0.000{col 61}{space 4} .4835483{col 74}{space 3}  .513417
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_ols_approval_2_sc: reg  sen_approval_binary sen_perc_nominee_agreement sen_perc_party_agreement `controls',  cluster(sen_icpsr) 

{txt}Linear regression                               Number of obs     = {res}    13,129
                                                {txt}F(15, 100)        =  {res}   477.43
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.4419
                                                {txt}Root MSE          =    {res} .37348

{txt}{ralign 85:(Std. Err. adjusted for {res:101} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1636466{col 33}{space 2} .0067952{col 44}{space 1}   24.08{col 53}{space 3}0.000{col 61}{space 4}  .150165{col 74}{space 3} .1771281
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2054262{col 33}{space 2} .0097265{col 44}{space 1}   21.12{col 53}{space 3}0.000{col 61}{space 4} .1861291{col 74}{space 3} .2247232
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0121245{col 33}{space 2} .0244069{col 44}{space 1}   -0.50{col 53}{space 3}0.620{col 61}{space 4}-.0605472{col 74}{space 3} .0362982
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0417402{col 33}{space 2} .0272462{col 44}{space 1}   -1.53{col 53}{space 3}0.129{col 61}{space 4}-.0957958{col 74}{space 3} .0123154
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0197179{col 33}{space 2} .0253765{col 44}{space 1}   -0.78{col 53}{space 3}0.439{col 61}{space 4}-.0700641{col 74}{space 3} .0306283
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0348805{col 33}{space 2} .0073123{col 44}{space 1}    4.77{col 53}{space 3}0.000{col 61}{space 4} .0203732{col 74}{space 3} .0493878
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0420182{col 33}{space 2}  .012427{col 44}{space 1}    3.38{col 53}{space 3}0.001{col 61}{space 4} .0173634{col 74}{space 3} .0666729
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0512645{col 33}{space 2} .0155299{col 44}{space 1}    3.30{col 53}{space 3}0.001{col 61}{space 4} .0204537{col 74}{space 3} .0820753
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0589121{col 33}{space 2} .0188205{col 44}{space 1}   -3.13{col 53}{space 3}0.002{col 61}{space 4}-.0962514{col 74}{space 3}-.0215727
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0352785{col 33}{space 2} .0156287{col 44}{space 1}   -2.26{col 53}{space 3}0.026{col 61}{space 4}-.0662855{col 74}{space 3}-.0042716
{txt}{space 17}4  {c |}{col 21}{res}{space 2}  -.02884{col 33}{space 2} .0187416{col 44}{space 1}   -1.54{col 53}{space 3}0.127{col 61}{space 4}-.0660228{col 74}{space 3} .0083429
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0833468{col 33}{space 2} .0170241{col 44}{space 1}    4.90{col 53}{space 3}0.000{col 61}{space 4} .0495714{col 74}{space 3} .1171222
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0734941{col 33}{space 2} .0161933{col 44}{space 1}    4.54{col 53}{space 3}0.000{col 61}{space 4}  .041367{col 74}{space 3} .1056212
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0035303{col 33}{space 2}  .003749{col 44}{space 1}   -0.94{col 53}{space 3}0.349{col 61}{space 4}-.0109682{col 74}{space 3} .0039076
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1751552{col 33}{space 2} .0127995{col 44}{space 1}   13.68{col 53}{space 3}0.000{col 61}{space 4} .1497613{col 74}{space 3}  .200549
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3954283{col 33}{space 2} .0312478{col 44}{space 1}   12.65{col 53}{space 3}0.000{col 61}{space 4} .3334336{col 74}{space 3} .4574229
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. keep if nominee=="kagan"
{txt}(27,978 observations deleted)

{com}. *keep only respondents with senate incumbents
. keep if R_had_incumbent10_elec==1
{txt}(66,230 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_cces_name, "Christopher Dodd", "George LeMieux" , "Roland Burris" , "Evan Bayh", "Samuel Brownback")
{txt}(9,654 observations deleted)

{com}. drop if inlist(sen_cces_name,  "Jim Bunning" , "Christopher 'Kit' Bond" , "Judd Gregg" , "Byron Dorgan" , "George Voinovich"  , "Arlen Specter" , "Robert Bennett")
{txt}(7,938 observations deleted)

{com}. eststo sk_ols_vc_1_sc:  reg R_vote_inc sen_perc_nominee_agreement sen_perc_party_agreement,  cluster(sen_icpsr) 

{txt}Linear regression                               Number of obs     = {res}     1,671
                                                {txt}F(2, 22)          =  {res}  9683.90
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7308
                                                {txt}Root MSE          =    {res} .25693

{txt}{ralign 85:(Std. Err. adjusted for {res:23} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1572463{col 33}{space 2} .0109255{col 44}{space 1}   14.39{col 53}{space 3}0.000{col 61}{space 4} .1345882{col 74}{space 3} .1799044
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .3440195{col 33}{space 2} .0100569{col 44}{space 1}   34.21{col 53}{space 3}0.000{col 61}{space 4} .3231627{col 74}{space 3} .3648764
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5030815{col 33}{space 2} .0092508{col 44}{space 1}   54.38{col 53}{space 3}0.000{col 61}{space 4} .4838964{col 74}{space 3} .5222665
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. eststo sk_ols_vc_2_sc:  reg  R_vote_inc sen_perc_nominee_agreement sen_perc_party_agreement `controls',  cluster(sen_icpsr) 

{txt}Linear regression                               Number of obs     = {res}     1,574
                                                {txt}F(15, 22)         =  {res}  4482.76
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.7542
                                                {txt}Root MSE          =    {res} .24667

{txt}{ralign 85:(Std. Err. adjusted for {res:23} clusters in sen_icpsr)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1334351{col 33}{space 2} .0157374{col 44}{space 1}    8.48{col 53}{space 3}0.000{col 61}{space 4} .1007978{col 74}{space 3} .1660725
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .3053461{col 33}{space 2} .0146292{col 44}{space 1}   20.87{col 53}{space 3}0.000{col 61}{space 4} .2750069{col 74}{space 3} .3356852
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0781842{col 33}{space 2} .1106471{col 44}{space 1}   -0.71{col 53}{space 3}0.487{col 61}{space 4}-.3076522{col 74}{space 3} .1512838
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0374976{col 33}{space 2} .1203975{col 44}{space 1}   -0.31{col 53}{space 3}0.758{col 61}{space 4}-.2871868{col 74}{space 3} .2121916
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0527693{col 33}{space 2} .1176456{col 44}{space 1}   -0.45{col 53}{space 3}0.658{col 61}{space 4}-.2967513{col 74}{space 3} .1912128
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0196816{col 33}{space 2} .0164235{col 44}{space 1}    1.20{col 53}{space 3}0.244{col 61}{space 4}-.0143786{col 74}{space 3} .0537418
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0192036{col 33}{space 2} .0556994{col 44}{space 1}   -0.34{col 53}{space 3}0.734{col 61}{space 4}-.1347172{col 74}{space 3} .0963099
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0129789{col 33}{space 2} .0297888{col 44}{space 1}    0.44{col 53}{space 3}0.667{col 61}{space 4}-.0487992{col 74}{space 3}  .074757
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0392063{col 33}{space 2} .0302053{col 44}{space 1}   -1.30{col 53}{space 3}0.208{col 61}{space 4}-.1018482{col 74}{space 3} .0234356
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0163875{col 33}{space 2} .0288772{col 44}{space 1}   -0.57{col 53}{space 3}0.576{col 61}{space 4} -.076275{col 74}{space 3} .0435001
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.044305{col 33}{space 2} .0288192{col 44}{space 1}   -1.54{col 53}{space 3}0.138{col 61}{space 4}-.1040723{col 74}{space 3} .0154624
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1476647{col 33}{space 2}  .042561{col 44}{space 1}    3.47{col 53}{space 3}0.002{col 61}{space 4} .0593985{col 74}{space 3} .2359309
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .1368087{col 33}{space 2} .0328107{col 44}{space 1}    4.17{col 53}{space 3}0.000{col 61}{space 4} .0687635{col 74}{space 3} .2048539
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0074154{col 33}{space 2} .0113644{col 44}{space 1}    0.65{col 53}{space 3}0.521{col 61}{space 4} -.016153{col 74}{space 3} .0309837
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1683506{col 33}{space 2} .0240616{col 44}{space 1}    7.00{col 53}{space 3}0.000{col 61}{space 4} .1184498{col 74}{space 3} .2182514
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3795981{col 33}{space 2}  .102246{col 44}{space 1}    3.71{col 53}{space 3}0.001{col 61}{space 4} .1675529{col 74}{space 3} .5916434
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. esttab  sk_iv_approval_1_sc sk_iv_approval_2_sc  k_iv_vc_1_sc k_iv_vc_2_sc  /// 
>         sk_ols_approval_1_sc sk_ols_approval_2_sc  sk_ols_vc_1_sc sk_ols_vc_2_sc ///
>         using  "table_A8_soto_kagan.tex", /// 
>         keep(sen_perc_nominee_agreement sen_perc_party_agreement) nomtitles  ///
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Regressions of voters' assessment of Sotomayor and Kagan, with SEs clustered on senators\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A8_soto_kagan.tex"'})

{com}. 
. ********************************************
. *tables A-15 and A-16, separate results for Democrats and Republicans (just IV models)
.                 
.         *DEMOCRATS
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. eststo thomas_iv_approval_1_d: ivregress 2sls sen_approval_binary ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement ///      
>         sen_actual_party_agreement) if dem_lean==1, cluster(case_id) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,752
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}     16.61
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0002
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res} .40602

{txt}{ralign 85:(Std. Err. adjusted for {res:1,056} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2}-.0154255{col 33}{space 2} .1115422{col 44}{space 1}   -0.14{col 53}{space 3}0.890{col 61}{space 4}-.2340441{col 74}{space 3} .2031931
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .2082914{col 33}{space 2} .0617557{col 44}{space 1}    3.37{col 53}{space 3}0.001{col 61}{space 4} .0872525{col 74}{space 3} .3293303
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .7783952{col 33}{space 2} .0147945{col 44}{space 1}   52.61{col 53}{space 3}0.000{col 61}{space 4} .7493984{col 74}{space 3} .8073919
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,1055){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0190{col 29}{space 2}0.0178{col 41}{space 3}0.0190{col 53}{space 3} 12.1272{col 65}{space 3}0.0000
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.1404{col 29}{space 2}0.1394{col 41}{space 3}0.1404{col 53}{space 3} 106.219{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}1056{txt} clusters in case_id)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0108{col 35}{space 6}0.0103
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0803{col 35}{space 6}0.0798
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo thomas_iv_approval_2_d:ivregress 2sls  sen_approval_binary `controls' ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement) if dem_lean==1, cluster(case_id)
{res}{txt}note: dem_lean omitted because of collinearity
note: gop_lean omitted because of collinearity
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,222
{txt}{col 1}{col 51}Wald chi2({res}13{txt}){col 67}= {res}     25.27
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0213
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res} .41768

{txt}{ralign 85:(Std. Err. adjusted for {res:737} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2}-.0357237{col 33}{space 2} .1018365{col 44}{space 1}   -0.35{col 53}{space 3}0.726{col 61}{space 4}-.2353196{col 74}{space 3} .1638722
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .1660049{col 33}{space 2}  .064312{col 44}{space 1}    2.58{col 53}{space 3}0.010{col 61}{space 4} .0399558{col 74}{space 3} .2920541
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0399418{col 33}{space 2} .0542033{col 44}{space 1}   -0.74{col 53}{space 3}0.461{col 61}{space 4}-.1461783{col 74}{space 3} .0662947
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0264591{col 33}{space 2} .0546051{col 44}{space 1}    0.48{col 53}{space 3}0.628{col 61}{space 4}-.0805648{col 74}{space 3} .1334831
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0055409{col 33}{space 2} .0608095{col 44}{space 1}   -0.09{col 53}{space 3}0.927{col 61}{space 4}-.1247254{col 74}{space 3} .1136436
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}   .05283{col 33}{space 2} .0265095{col 44}{space 1}    1.99{col 53}{space 3}0.046{col 61}{space 4} .0008723{col 74}{space 3} .1047878
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0078779{col 33}{space 2} .0443227{col 44}{space 1}    0.18{col 53}{space 3}0.859{col 61}{space 4} -.078993{col 74}{space 3} .0947488
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0365246{col 33}{space 2}  .057796{col 44}{space 1}    0.63{col 53}{space 3}0.527{col 61}{space 4}-.0767535{col 74}{space 3} .1498027
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0014677{col 33}{space 2} .0365116{col 44}{space 1}    0.04{col 53}{space 3}0.968{col 61}{space 4}-.0700937{col 74}{space 3}  .073029
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0591791{col 33}{space 2} .0363348{col 44}{space 1}    1.63{col 53}{space 3}0.103{col 61}{space 4}-.0120359{col 74}{space 3}  .130394
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0707259{col 33}{space 2} .0460031{col 44}{space 1}    1.54{col 53}{space 3}0.124{col 61}{space 4}-.0194386{col 74}{space 3} .1608905
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0219205{col 33}{space 2} .0119406{col 44}{space 1}   -1.84{col 53}{space 3}0.066{col 61}{space 4}-.0453236{col 74}{space 3} .0014827
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0116182{col 33}{space 2} .0374599{col 44}{space 1}    0.31{col 53}{space 3}0.756{col 61}{space 4}-.0618019{col 74}{space 3} .0850382
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .7018757{col 33}{space 2} .0611205{col 44}{space 1}   11.48{col 53}{space 3}0.000{col 61}{space 4} .5820817{col 74}{space 3} .8216696
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat engage_factor sen_actual_ideo_agreement sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,736){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0431{col 29}{space 2}0.0328{col 41}{space 3}0.0277{col 53}{space 3} 13.0281{col 65}{space 3}0.0000
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.1896{col 29}{space 2}0.1809{col 41}{space 3}0.1602{col 53}{space 3} 88.0336{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}737{txt} clusters in case_id)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0184{col 35}{space 6}0.0045
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.1062{col 35}{space 6}0.0936
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. *vote choice
. keep if R_had_incumbent_elec==1
{txt}(3,544 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_name, "DIXON, Alan John" ,"CRANSTON, Alan" ,"WIRTH, Timothy E." ,"RUDMAN, Warren Bruce" ,"GARN, Edwin Jacob (Jake)" ,"ADAMS, Brockman (Brock)")
{txt}(359 observations deleted)

{com}. eststo thomas_iv_vc_1_d: ivregress 2sls  R_vote_inc ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement) if dem_lean==1
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}       504
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}     57.92
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res} .70227

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .6430688{col 33}{space 2} .7220882{col 44}{space 1}    0.89{col 53}{space 3}0.373{col 61}{space 4}-.7721981{col 74}{space 3} 2.058336
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .4859621{col 33}{space 2} .1206067{col 44}{space 1}    4.03{col 53}{space 3}0.000{col 61}{space 4} .2495772{col 74}{space 3} .7223469
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5270133{col 33}{space 2} .0340884{col 44}{space 1}   15.46{col 53}{space 3}0.000{col 61}{space 4} .4602013{col 74}{space 3} .5938254
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all
{res}
{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,501){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0066{col 29}{space 2}0.0027{col 41}{space 3}0.0066{col 53}{space 3} 1.66978{col 65}{space 3}0.1893
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.4052{col 29}{space 2}0.4028{col 41}{space 3}0.4052{col 53}{space 3} 170.662{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0026{col 35}{space 6}0.0006
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.1583{col 35}{space 6}0.1566
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{col 3}Minimum eigenvalue statistic = {res}.644096     

{txt}{col 3}Critical Values{col 40}# of endogenous regressors:{res}    2
{txt}{col 3}Ho: Instruments are weak{col 40}# of excluded instruments: {res}    2
{txt}{col 3}{hline 35}{c TT}{hline 33}
{col 38}{c |}{col 43}5%     10%     20%     30%
{col 3}2SLS relative bias{col 38}{c |}{col 48}(not available)
{col 3}{hline 35}{c +}{hline 33}
{col 38}{c |}{col 42}10%     15%     20%     25%
{col 3}2SLS Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}LIML Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}{hline 35}{c BT}{hline 33}


{com}. eststo thomas_iv_vc_2_d: ivregress 2sls  R_vote_inc `controls' ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement) if dem_lean==1
{res}{txt}note: dem_lean omitted because of collinearity
note: gop_lean omitted because of collinearity
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}       367
{txt}{col 1}{col 51}Wald chi2({res}13{txt}){col 67}= {res}     52.06
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res}  .7299

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .7266697{col 33}{space 2} .9623608{col 44}{space 1}    0.76{col 53}{space 3}0.450{col 61}{space 4}-1.159523{col 74}{space 3} 2.612862
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .3787959{col 33}{space 2}  .199682{col 44}{space 1}    1.90{col 53}{space 3}0.058{col 61}{space 4}-.0125736{col 74}{space 3} .7701654
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1559894{col 33}{space 2} .1901507{col 44}{space 1}    0.82{col 53}{space 3}0.412{col 61}{space 4}-.2166992{col 74}{space 3}  .528678
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0255678{col 33}{space 2} .1868818{col 44}{space 1}    0.14{col 53}{space 3}0.891{col 61}{space 4}-.3407138{col 74}{space 3} .3918493
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.1364773{col 33}{space 2} .2960955{col 44}{space 1}   -0.46{col 53}{space 3}0.645{col 61}{space 4}-.7168138{col 74}{space 3} .4438592
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0795629{col 33}{space 2} .1632921{col 44}{space 1}    0.49{col 53}{space 3}0.626{col 61}{space 4}-.2404838{col 74}{space 3} .3996096
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0622204{col 33}{space 2} .1235674{col 44}{space 1}    0.50{col 53}{space 3}0.615{col 61}{space 4}-.1799673{col 74}{space 3} .3044081
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0588076{col 33}{space 2} .1859934{col 44}{space 1}   -0.32{col 53}{space 3}0.752{col 61}{space 4} -.423348{col 74}{space 3} .3057328
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0178375{col 33}{space 2} .1367411{col 44}{space 1}    0.13{col 53}{space 3}0.896{col 61}{space 4}-.2501701{col 74}{space 3} .2858452
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .1235129{col 33}{space 2} .1158988{col 44}{space 1}    1.07{col 53}{space 3}0.287{col 61}{space 4}-.1036447{col 74}{space 3} .3506704
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .2070981{col 33}{space 2} .1579661{col 44}{space 1}    1.31{col 53}{space 3}0.190{col 61}{space 4}-.1025098{col 74}{space 3}  .516706
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2} .0887074{col 33}{space 2} .0559754{col 44}{space 1}    1.58{col 53}{space 3}0.113{col 61}{space 4}-.0210024{col 74}{space 3} .1984173
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .3252346{col 33}{space 2} .1991358{col 44}{space 1}    1.63{col 53}{space 3}0.102{col 61}{space 4}-.0650644{col 74}{space 3} .7155335
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .1763979{col 33}{space 2} .2226247{col 44}{space 1}    0.79{col 53}{space 3}0.428{col 61}{space 4}-.2599386{col 74}{space 3} .6127344
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat engage_factor sen_actual_ideo_agreement sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all
{res}
{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,353){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0389{col 29}{space 2}0.0035{col 41}{space 3}0.0105{col 53}{space 3} 1.87697{col 65}{space 3}0.1546
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.4516{col 29}{space 2}0.4314{col 41}{space 3}0.4330{col 53}{space 3} 134.761{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0020{col 35}{space 6}-0.0466
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0835{col 35}{space 6}0.0389
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{col 3}Minimum eigenvalue statistic = {res}.354566     

{txt}{col 3}Critical Values{col 40}# of endogenous regressors:{res}    2
{txt}{col 3}Ho: Instruments are weak{col 40}# of excluded instruments: {res}    2
{txt}{col 3}{hline 35}{c TT}{hline 33}
{col 38}{c |}{col 43}5%     10%     20%     30%
{col 3}2SLS relative bias{col 38}{c |}{col 48}(not available)
{col 3}{hline 35}{c +}{hline 33}
{col 38}{c |}{col 42}10%     15%     20%     25%
{col 3}2SLS Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}LIML Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}{hline 35}{c BT}{hline 33}


{com}. esttab  thomas_iv_approval_1_d thomas_iv_approval_2_d  thomas_iv_vc_1_d thomas_iv_vc_2_d /// 
>         using  "table_A15_thomas.tex", keep(sen_perceived_thomas_agreement sen_perceived_party_agreement) nomtitles  ///
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Regressions of voters' assessment of Clarence Thomas, Democrats only\label{c -(}foo{c )-})  
{res}{txt}(output written to {browse  `"table_A15_thomas.tex"'})

{com}. 
. 
. *SOTOMAYOR AND KAGAN
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *approval
. eststo sk_iv_approval_1_d: ivregress 2sls sen_approval_binary  /// 
>                 (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement) if dem_lean==1 , cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     6,278
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}   2028.29
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.3241
{txt}{col 51}Root MSE{col 67}=    {res} .39304

{txt}{ralign 85:(Std. Err. adjusted for {res:3,347} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2}  .273543{col 33}{space 2} .0309259{col 44}{space 1}    8.85{col 53}{space 3}0.000{col 61}{space 4} .2129293{col 74}{space 3} .3341566
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .1910744{col 33}{space 2} .0202247{col 44}{space 1}    9.45{col 53}{space 3}0.000{col 61}{space 4} .1514346{col 74}{space 3} .2307141
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5149308{col 33}{space 2} .0072005{col 44}{space 1}   71.51{col 53}{space 3}0.000{col 61}{space 4} .5008181{col 74}{space 3} .5290435
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,3346){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.4164{col 29}{space 2}0.4162{col 41}{space 3}0.4164{col 53}{space 3} 1373.46{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.6215{col 29}{space 2}0.6214{col 41}{space 3}0.6215{col 53}{space 3} 3750.67{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}3347{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.1480{col 35}{space 6}0.1478
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.2208{col 35}{space 6}0.2207
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo sk_iv_approval_2_d: ivregress 2sls  sen_approval_binary /// 
>         `controls' (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement)  if dem_lean==1,     cluster(case_id_new)
{res}{txt}note: dem_lean omitted because of collinearity
note: gop_lean omitted because of collinearity
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     5,851
{txt}{col 1}{col 51}Wald chi2({res}13{txt}){col 67}= {res}   2451.26
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.3448
{txt}{col 51}Root MSE{col 67}=    {res} .38757

{txt}{ralign 85:(Std. Err. adjusted for {res:3,058} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2}  .262791{col 33}{space 2}   .03333{col 44}{space 1}    7.88{col 53}{space 3}0.000{col 61}{space 4} .1974654{col 74}{space 3} .3281167
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2}  .174256{col 33}{space 2} .0203902{col 44}{space 1}    8.55{col 53}{space 3}0.000{col 61}{space 4} .1342921{col 74}{space 3}   .21422
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0308662{col 33}{space 2} .0464389{col 44}{space 1}   -0.66{col 53}{space 3}0.506{col 61}{space 4}-.1218848{col 74}{space 3} .0601524
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  -.07587{col 33}{space 2} .0465754{col 44}{space 1}   -1.63{col 53}{space 3}0.103{col 61}{space 4}-.1671562{col 74}{space 3} .0154162
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0606217{col 33}{space 2} .0475683{col 44}{space 1}   -1.27{col 53}{space 3}0.203{col 61}{space 4}-.1538539{col 74}{space 3} .0326105
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0545895{col 33}{space 2} .0123351{col 44}{space 1}    4.43{col 53}{space 3}0.000{col 61}{space 4} .0304132{col 74}{space 3} .0787659
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0344974{col 33}{space 2} .0159635{col 44}{space 1}    2.16{col 53}{space 3}0.031{col 61}{space 4} .0032095{col 74}{space 3} .0657852
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0551804{col 33}{space 2}  .022825{col 44}{space 1}    2.42{col 53}{space 3}0.016{col 61}{space 4} .0104443{col 74}{space 3} .0999165
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}  -.04265{col 33}{space 2} .0248172{col 44}{space 1}   -1.72{col 53}{space 3}0.086{col 61}{space 4}-.0912907{col 74}{space 3} .0059908
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0375321{col 33}{space 2} .0222978{col 44}{space 1}   -1.68{col 53}{space 3}0.092{col 61}{space 4}-.0812349{col 74}{space 3} .0061707
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0550041{col 33}{space 2}  .024984{col 44}{space 1}   -2.20{col 53}{space 3}0.028{col 61}{space 4}-.1039718{col 74}{space 3}-.0060364
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0036724{col 33}{space 2} .0064734{col 44}{space 1}   -0.57{col 53}{space 3}0.571{col 61}{space 4}  -.01636{col 74}{space 3} .0090153
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0960777{col 33}{space 2} .0224871{col 44}{space 1}    4.27{col 53}{space 3}0.000{col 61}{space 4} .0520038{col 74}{space 3} .1401516
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  .525848{col 33}{space 2}  .048288{col 44}{space 1}   10.89{col 53}{space 3}0.000{col 61}{space 4} .4312053{col 74}{space 3} .6204907
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat engage_factor sen_actual_ideo_agreement sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,3057){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.4474{col 29}{space 2}0.4461{col 41}{space 3}0.3285{col 53}{space 3} 819.439{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.6366{col 29}{space 2}0.6358{col 41}{space 3}0.5582{col 53}{space 3} 2207.11{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}3058{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.1425{col 35}{space 6}0.1400
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.2421{col 35}{space 6}0.2399
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. *vote choice (kagan only)
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. keep if nominee=="kagan"
{txt}(27,978 observations deleted)

{com}. keep if R_had_incumbent10_elec==1
{txt}(66,230 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_cces_name, "Christopher Dodd", "George LeMieux" , "Roland Burris" , "Evan Bayh", "Samuel Brownback")
{txt}(9,654 observations deleted)

{com}. drop if inlist(sen_cces_name,  "Jim Bunning" , "Christopher 'Kit' Bond" , "Judd Gregg" , "Byron Dorgan" , "George Voinovich"  , "Arlen Specter" , "Robert Bennett")
{txt}(7,938 observations deleted)

{com}. eststo k_iv_vc_1_d: ivregress 2sls  R_vote_inc  /// 
>         ( sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement)  if dem_lean==1, cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}       753
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}   1647.44
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7312
{txt}{col 51}Root MSE{col 67}=    {res} .22111

{txt}{ralign 85:(Std. Err. adjusted for {res:658} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .0631403{col 33}{space 2} .0601758{col 44}{space 1}    1.05{col 53}{space 3}0.294{col 61}{space 4} -.054802{col 74}{space 3} .1810827
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .4564891{col 33}{space 2}  .043864{col 44}{space 1}   10.41{col 53}{space 3}0.000{col 61}{space 4} .3705173{col 74}{space 3} .5424609
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5037833{col 33}{space 2} .0135699{col 44}{space 1}   37.13{col 53}{space 3}0.000{col 61}{space 4} .4771868{col 74}{space 3} .5303799
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,657){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.6065{col 29}{space 2}0.6055{col 41}{space 3}0.6065{col 53}{space 3} 414.858{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.8705{col 29}{space 2}0.8702{col 41}{space 3}0.8705{col 53}{space 3} 1806.43{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}658{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2622{col 35}{space 6}0.2612
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.3763{col 35}{space 6}0.3755
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo k_iv_vc_2_d: ivregress 2sls  R_vote_inc `controls'   /// 
>         ( sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement) if dem_lean==1, cluster(case_id_new)
{res}{txt}note: dem_lean omitted because of collinearity
note: gop_lean omitted because of collinearity
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}       703
{txt}{col 1}{col 51}Wald chi2({res}13{txt}){col 67}= {res}   2366.51
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7477
{txt}{col 51}Root MSE{col 67}=    {res} .21509

{txt}{ralign 85:(Std. Err. adjusted for {res:615} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .0739847{col 33}{space 2}    .0603{col 44}{space 1}    1.23{col 53}{space 3}0.220{col 61}{space 4}-.0442011{col 74}{space 3} .1921705
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .4578251{col 33}{space 2} .0435882{col 44}{space 1}   10.50{col 53}{space 3}0.000{col 61}{space 4} .3723938{col 74}{space 3} .5432564
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.2200002{col 33}{space 2} .1717055{col 44}{space 1}   -1.28{col 53}{space 3}0.200{col 61}{space 4}-.5565367{col 74}{space 3} .1165363
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.1470745{col 33}{space 2} .1730662{col 44}{space 1}   -0.85{col 53}{space 3}0.395{col 61}{space 4} -.486278{col 74}{space 3}  .192129
{txt}{space 17}4  {c |}{col 21}{res}{space 2}  -.17027{col 33}{space 2} .1734188{col 44}{space 1}   -0.98{col 53}{space 3}0.326{col 61}{space 4}-.5101647{col 74}{space 3} .1696246
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0191638{col 33}{space 2} .0169177{col 44}{space 1}    1.13{col 53}{space 3}0.257{col 61}{space 4}-.0139943{col 74}{space 3} .0523219
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0057071{col 33}{space 2} .0257511{col 44}{space 1}   -0.22{col 53}{space 3}0.825{col 61}{space 4}-.0561783{col 74}{space 3} .0447641
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0010474{col 33}{space 2} .0517956{col 44}{space 1}   -0.02{col 53}{space 3}0.984{col 61}{space 4}-.1025648{col 74}{space 3} .1004701
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0288111{col 33}{space 2} .0555272{col 44}{space 1}   -0.52{col 53}{space 3}0.604{col 61}{space 4}-.1376424{col 74}{space 3} .0800203
{txt}{space 17}3  {c |}{col 21}{res}{space 2}   .01484{col 33}{space 2} .0559031{col 44}{space 1}    0.27{col 53}{space 3}0.791{col 61}{space 4}-.0947281{col 74}{space 3} .1244081
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0196365{col 33}{space 2} .0565709{col 44}{space 1}    0.35{col 53}{space 3}0.729{col 61}{space 4}-.0912404{col 74}{space 3} .1305133
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0202945{col 33}{space 2} .0171074{col 44}{space 1}   -1.19{col 53}{space 3}0.236{col 61}{space 4}-.0538244{col 74}{space 3} .0132354
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}-.0304349{col 33}{space 2} .0352439{col 44}{space 1}   -0.86{col 53}{space 3}0.388{col 61}{space 4}-.0995116{col 74}{space 3} .0386418
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .6706668{col 33}{space 2} .1738343{col 44}{space 1}    3.86{col 53}{space 3}0.000{col 61}{space 4} .3299579{col 74}{space 3} 1.011376
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat engage_factor sen_actual_ideo_agreement sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,614){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.6512{col 29}{space 2}0.6446{col 41}{space 3}0.5338{col 53}{space 3} 238.046{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.8774{col 29}{space 2}0.8751{col 41}{space 3}0.8305{col 53}{space 3} 828.221{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}615{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2713{col 35}{space 6}0.2532
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.4221{col 35}{space 6}0.4077
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. 
. esttab  sk_iv_approval_1_d sk_iv_approval_2_d k_iv_vc_1_d k_iv_vc_2_d /// 
>         using  "table_A15_soto_kagan.tex", keep(sen_perc_nominee_agreement sen_perc_party_agreement) nomtitles  ///
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Regressions of voters' assessment of Sotomayor and Kagan, Democrats only\label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A15_soto_kagan.tex"'})

{com}.         
.         *Republicans
. use "thomas_long_data.dta", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. eststo thomas_iv_approval_1_g: ivregress 2sls sen_approval_binary ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement ///      
>         sen_actual_party_agreement) if gop_lean==1, cluster(case_id) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,499
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}     14.05
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0009
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.0186
{txt}{col 51}Root MSE{col 67}=    {res} .40822

{txt}{ralign 85:(Std. Err. adjusted for {res:894} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .1359804{col 33}{space 2} .0882561{col 44}{space 1}    1.54{col 53}{space 3}0.123{col 61}{space 4}-.0369983{col 74}{space 3} .3089591
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .1221715{col 33}{space 2} .0568715{col 44}{space 1}    2.15{col 53}{space 3}0.032{col 61}{space 4} .0107055{col 74}{space 3} .2336376
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .7897035{col 33}{space 2} .0193814{col 44}{space 1}   40.75{col 53}{space 3}0.000{col 61}{space 4} .7517166{col 74}{space 3} .8276903
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,893){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0305{col 29}{space 2}0.0292{col 41}{space 3}0.0305{col 53}{space 3} 16.5839{col 65}{space 3}0.0000
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.1322{col 29}{space 2}0.1310{col 41}{space 3}0.1322{col 53}{space 3} 90.6315{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}894{txt} clusters in case_id)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0229{col 35}{space 6}0.0223
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0995{col 35}{space 6}0.0989
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo thomas_iv_approval_2_g:ivregress 2sls  sen_approval_binary `controls' ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement) if gop_lean==1, cluster(case_id)
{res}{txt}note: dem_lean omitted because of collinearity
note: gop_lean omitted because of collinearity
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,150
{txt}{col 1}{col 51}Wald chi2({res}13{txt}){col 67}= {res}     55.44
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.0620
{txt}{col 51}Root MSE{col 67}=    {res} .40839

{txt}{ralign 85:(Std. Err. adjusted for {res:683} clusters in case_id)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .1775188{col 33}{space 2} .0969406{col 44}{space 1}    1.83{col 53}{space 3}0.067{col 61}{space 4}-.0124813{col 74}{space 3} .3675189
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .0563631{col 33}{space 2} .0625083{col 44}{space 1}    0.90{col 53}{space 3}0.367{col 61}{space 4}-.0661509{col 74}{space 3} .1788771
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0090607{col 33}{space 2} .0718669{col 44}{space 1}    0.13{col 53}{space 3}0.900{col 61}{space 4}-.1317959{col 74}{space 3} .1499173
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0173248{col 33}{space 2} .0710626{col 44}{space 1}    0.24{col 53}{space 3}0.807{col 61}{space 4}-.1219553{col 74}{space 3} .1566049
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.005899{col 33}{space 2} .0759328{col 44}{space 1}   -0.08{col 53}{space 3}0.938{col 61}{space 4}-.1547246{col 74}{space 3} .1429266
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0557366{col 33}{space 2} .0258699{col 44}{space 1}    2.15{col 53}{space 3}0.031{col 61}{space 4} .0050325{col 74}{space 3} .1064407
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .2503914{col 33}{space 2} .0684942{col 44}{space 1}    3.66{col 53}{space 3}0.000{col 61}{space 4} .1161452{col 74}{space 3} .3846376
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.1986765{col 33}{space 2} .1039589{col 44}{space 1}   -1.91{col 53}{space 3}0.056{col 61}{space 4}-.4024321{col 74}{space 3} .0050791
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0041571{col 33}{space 2} .0359725{col 44}{space 1}   -0.12{col 53}{space 3}0.908{col 61}{space 4}-.0746619{col 74}{space 3} .0663477
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .020125{col 33}{space 2} .0383458{col 44}{space 1}    0.52{col 53}{space 3}0.600{col 61}{space 4}-.0550314{col 74}{space 3} .0952814
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0263536{col 33}{space 2} .0467999{col 44}{space 1}   -0.56{col 53}{space 3}0.573{col 61}{space 4}-.1180798{col 74}{space 3} .0653725
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0308327{col 33}{space 2} .0118222{col 44}{space 1}   -2.61{col 53}{space 3}0.009{col 61}{space 4}-.0540038{col 74}{space 3}-.0076615
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0743551{col 33}{space 2}   .04151{col 44}{space 1}    1.79{col 53}{space 3}0.073{col 61}{space 4} -.007003{col 74}{space 3} .1557131
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .7076726{col 33}{space 2} .0658558{col 44}{space 1}   10.75{col 53}{space 3}0.000{col 61}{space 4} .5785976{col 74}{space 3} .8367476
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat engage_factor sen_actual_ideo_agreement sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,682){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0435{col 29}{space 2}0.0325{col 41}{space 3}0.0285{col 53}{space 3} 11.7334{col 65}{space 3}0.0000
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.1788{col 29}{space 2}0.1694{col 41}{space 3}0.1217{col 53}{space 3}  63.184{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}683{txt} clusters in case_id)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0234{col 35}{space 6}0.0087
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0997{col 35}{space 6}0.0862
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. *vote choice
. keep if R_had_incumbent_elec==1
{txt}(3,544 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_name, "DIXON, Alan John" ,"CRANSTON, Alan" ,"WIRTH, Timothy E." ,"RUDMAN, Warren Bruce" ,"GARN, Edwin Jacob (Jake)" ,"ADAMS, Brockman (Brock)")
{txt}(359 observations deleted)

{com}. eststo thomas_iv_vc_1_g: ivregress 2sls  R_vote_inc ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement) if gop_lean==1
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}       449
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}     11.48
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0032
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res} 1.0123

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} 1.116431{col 33}{space 2} 2.670783{col 44}{space 1}    0.42{col 53}{space 3}0.676{col 61}{space 4}-4.118208{col 74}{space 3}  6.35107
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .3502753{col 33}{space 2} .1240851{col 44}{space 1}    2.82{col 53}{space 3}0.005{col 61}{space 4} .1070729{col 74}{space 3} .5934778
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4323818{col 33}{space 2} .2412489{col 44}{space 1}    1.79{col 53}{space 3}0.073{col 61}{space 4}-.0404573{col 74}{space 3}  .905221
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all
{res}
{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,446){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0006{col 29}{space 2}-0.0039{col 41}{space 3}0.0006{col 53}{space 3} .130585{col 65}{space 3}0.8776
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.3852{col 29}{space 2}0.3825{col 41}{space 3}0.3852{col 53}{space 3}  139.73{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0005{col 35}{space 6}-0.0018
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.3086{col 35}{space 6}0.3071
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{col 3}Minimum eigenvalue statistic = {res}.104551     

{txt}{col 3}Critical Values{col 40}# of endogenous regressors:{res}    2
{txt}{col 3}Ho: Instruments are weak{col 40}# of excluded instruments: {res}    2
{txt}{col 3}{hline 35}{c TT}{hline 33}
{col 38}{c |}{col 43}5%     10%     20%     30%
{col 3}2SLS relative bias{col 38}{c |}{col 48}(not available)
{col 3}{hline 35}{c +}{hline 33}
{col 38}{c |}{col 42}10%     15%     20%     25%
{col 3}2SLS Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}LIML Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}{hline 35}{c BT}{hline 33}


{com}. eststo thomas_iv_vc_2_g: ivregress 2sls  R_vote_inc `controls' ( sen_perceived_thomas_agreement sen_perceived_party_agreement = sen_actual_thomas_agreement sen_actual_party_agreement) if gop_lean==1
{res}{txt}note: dem_lean omitted because of collinearity
note: gop_lean omitted because of collinearity
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}       369
{txt}{col 1}{col 51}Wald chi2({res}13{txt}){col 67}= {res}     49.88
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}         .
{txt}{col 51}Root MSE{col 67}=    {res} .53774

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perceived_tho~t {c |}{col 21}{res}{space 2} .3756348{col 33}{space 2}  1.20734{col 44}{space 1}    0.31{col 53}{space 3}0.756{col 61}{space 4}-1.990709{col 74}{space 3} 2.741979
{txt}sen_perceived_par~t {c |}{col 21}{res}{space 2} .2173268{col 33}{space 2} .0816978{col 44}{space 1}    2.66{col 53}{space 3}0.008{col 61}{space 4} .0572021{col 74}{space 3} .3774515
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} -.122473{col 33}{space 2} .2862503{col 44}{space 1}   -0.43{col 53}{space 3}0.669{col 61}{space 4}-.6835132{col 74}{space 3} .4385672
{txt}{space 17}3  {c |}{col 21}{res}{space 2} -.040322{col 33}{space 2} .1521153{col 44}{space 1}   -0.27{col 53}{space 3}0.791{col 61}{space 4}-.3384625{col 74}{space 3} .2578185
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.1140562{col 33}{space 2} .1932437{col 44}{space 1}   -0.59{col 53}{space 3}0.555{col 61}{space 4} -.492807{col 74}{space 3} .2646945
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}-.0496356{col 33}{space 2} .0858776{col 44}{space 1}   -0.58{col 53}{space 3}0.563{col 61}{space 4}-.2179526{col 74}{space 3} .1186815
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0609287{col 33}{space 2} .6882746{col 44}{space 1}    0.09{col 53}{space 3}0.929{col 61}{space 4}-1.288065{col 74}{space 3} 1.409922
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0110888{col 33}{space 2} .2539937{col 44}{space 1}    0.04{col 53}{space 3}0.965{col 61}{space 4}-.4867296{col 74}{space 3} .5089073
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0026202{col 33}{space 2} .2052483{col 44}{space 1}   -0.01{col 53}{space 3}0.990{col 61}{space 4}-.4048996{col 74}{space 3} .3996591
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0818842{col 33}{space 2} .3665171{col 44}{space 1}    0.22{col 53}{space 3}0.823{col 61}{space 4}-.6364762{col 74}{space 3} .8002445
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0038411{col 33}{space 2} .1397162{col 44}{space 1}   -0.03{col 53}{space 3}0.978{col 61}{space 4}-.2776798{col 74}{space 3} .2699976
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2} .0164468{col 33}{space 2} .0427636{col 44}{space 1}    0.38{col 53}{space 3}0.701{col 61}{space 4}-.0673683{col 74}{space 3} .1002619
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2690272{col 33}{space 2} .2476655{col 44}{space 1}    1.09{col 53}{space 3}0.277{col 61}{space 4}-.2163882{col 74}{space 3} .7544426
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4536541{col 33}{space 2}   .16129{col 44}{space 1}    2.81{col 53}{space 3}0.005{col 61}{space 4} .1375315{col 74}{space 3} .7697767
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perceived_thomas_agreement sen_perceived_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat engage_factor sen_actual_ideo_agreement sen_actual_thomas_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all
{res}
{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,355){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.0319{col 29}{space 2}-0.0035{col 41}{space 3}0.0009{col 53}{space 3} .165147{col 65}{space 3}0.8478
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 2}0.4108{col 29}{space 2}0.3892{col 41}{space 3}0.3208{col 53}{space 3} 83.8296{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.0008{col 35}{space 6}-0.0476
{col 3}{text}sen_percei..{col 16}{c |}{result}{space 5}0.2632{col 35}{space 6}0.2275
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{col 3}Minimum eigenvalue statistic = {res}.13508      

{txt}{col 3}Critical Values{col 40}# of endogenous regressors:{res}    2
{txt}{col 3}Ho: Instruments are weak{col 40}# of excluded instruments: {res}    2
{txt}{col 3}{hline 35}{c TT}{hline 33}
{col 38}{c |}{col 43}5%     10%     20%     30%
{col 3}2SLS relative bias{col 38}{c |}{col 48}(not available)
{col 3}{hline 35}{c +}{hline 33}
{col 38}{c |}{col 42}10%     15%     20%     25%
{col 3}2SLS Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}LIML Size of nominal 5% Wald test{col 38}{c |}{res}{col 41} 7.03{col 49} 4.58{col 57} 3.95{col 65} 3.63
{txt}{col 3}{hline 35}{c BT}{hline 33}


{com}. esttab  thomas_iv_approval_1_g thomas_iv_approval_2_g  thomas_iv_vc_1_g thomas_iv_vc_2_g /// 
>         using  "table_A16_thomas.tex", keep(sen_perceived_thomas_agreement sen_perceived_party_agreement) nomtitles  ///
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Regressions of voters' assessment of Clarence Thomas, Republicans only\label{c -(}foo{c )-})        
{res}{txt}(output written to {browse  `"table_A16_thomas.tex"'})

{com}. 
. *SOTOMAYOR AND KAGAN
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *approval
. eststo sk_iv_approval_1_g: ivregress 2sls sen_approval_binary  /// 
>                 (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement) if gop_lean==1 , cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     6,255
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}   4937.91
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.4931
{txt}{col 51}Root MSE{col 67}=    {res} .35048

{txt}{ralign 85:(Std. Err. adjusted for {res:3,304} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1715185{col 33}{space 2} .0190684{col 44}{space 1}    8.99{col 53}{space 3}0.000{col 61}{space 4} .1341451{col 74}{space 3} .2088918
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2871249{col 33}{space 2} .0139238{col 44}{space 1}   20.62{col 53}{space 3}0.000{col 61}{space 4} .2598348{col 74}{space 3}  .314415
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4921029{col 33}{space 2}    .0058{col 44}{space 1}   84.85{col 53}{space 3}0.000{col 61}{space 4} .4807351{col 74}{space 3} .5034707
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,3303){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.5534{col 29}{space 2}0.5533{col 41}{space 3}0.5534{col 53}{space 3} 2553.27{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.7673{col 29}{space 2}0.7672{col 41}{space 3}0.7673{col 53}{space 3} 8975.55{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}3304{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2737{col 35}{space 6}0.2736
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.3795{col 35}{space 6}0.3794
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo sk_iv_approval_2_g: ivregress 2sls  sen_approval_binary /// 
>         `controls' (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement)  if gop_lean==1,     cluster(case_id_new)
{res}{txt}note: dem_lean omitted because of collinearity
note: gop_lean omitted because of collinearity
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     5,877
{txt}{col 1}{col 51}Wald chi2({res}13{txt}){col 67}= {res}   6033.40
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.5171
{txt}{col 51}Root MSE{col 67}=    {res} .34244

{txt}{ralign 85:(Std. Err. adjusted for {res:3,048} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1597778{col 33}{space 2} .0196056{col 44}{space 1}    8.15{col 53}{space 3}0.000{col 61}{space 4} .1213514{col 74}{space 3} .1982041
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2}  .254189{col 33}{space 2} .0160274{col 44}{space 1}   15.86{col 53}{space 3}0.000{col 61}{space 4} .2227759{col 74}{space 3} .2856022
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0163337{col 33}{space 2} .0396581{col 44}{space 1}    0.41{col 53}{space 3}0.680{col 61}{space 4}-.0613948{col 74}{space 3} .0940622
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0088378{col 33}{space 2}  .039704{col 44}{space 1}   -0.22{col 53}{space 3}0.824{col 61}{space 4}-.0866563{col 74}{space 3} .0689807
{txt}{space 17}4  {c |}{col 21}{res}{space 2}  .017124{col 33}{space 2} .0403844{col 44}{space 1}    0.42{col 53}{space 3}0.672{col 61}{space 4}-.0620281{col 74}{space 3} .0962761
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0146226{col 33}{space 2}  .010798{col 44}{space 1}    1.35{col 53}{space 3}0.176{col 61}{space 4}-.0065411{col 74}{space 3} .0357863
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .1156039{col 33}{space 2} .0384303{col 44}{space 1}    3.01{col 53}{space 3}0.003{col 61}{space 4} .0402819{col 74}{space 3} .1909259
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0481491{col 33}{space 2} .0243865{col 44}{space 1}    1.97{col 53}{space 3}0.048{col 61}{space 4} .0003524{col 74}{space 3} .0959458
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0650892{col 33}{space 2} .0305184{col 44}{space 1}   -2.13{col 53}{space 3}0.033{col 61}{space 4}-.1249041{col 74}{space 3}-.0052743
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0323581{col 33}{space 2} .0282981{col 44}{space 1}   -1.14{col 53}{space 3}0.253{col 61}{space 4}-.0878213{col 74}{space 3} .0231051
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0145639{col 33}{space 2} .0289916{col 44}{space 1}   -0.50{col 53}{space 3}0.615{col 61}{space 4}-.0713864{col 74}{space 3} .0422585
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0046341{col 33}{space 2} .0076245{col 44}{space 1}   -0.61{col 53}{space 3}0.543{col 61}{space 4}-.0195778{col 74}{space 3} .0103097
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1187148{col 33}{space 2} .0238993{col 44}{space 1}    4.97{col 53}{space 3}0.000{col 61}{space 4} .0718731{col 74}{space 3} .1655565
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4638972{col 33}{space 2}  .046763{col 44}{space 1}    9.92{col 53}{space 3}0.000{col 61}{space 4} .3722435{col 74}{space 3} .5555509
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat engage_factor sen_actual_ideo_agreement sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,3047){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.5690{col 29}{space 2}0.5680{col 41}{space 3}0.3847{col 53}{space 3}  1039.4{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.7751{col 29}{space 2}0.7746{col 41}{space 3}0.5846{col 53}{space 3} 2080.23{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}3048{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2758{col 35}{space 6}0.2737
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.4192{col 35}{space 6}0.4175
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. *vote choice (kagan only)
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. keep if nominee=="kagan"
{txt}(27,978 observations deleted)

{com}. keep if R_had_incumbent10_elec==1
{txt}(66,230 observations deleted)

{com}. *need to drop incumbents who didn't run or lost in primary
. drop if inlist(sen_cces_name, "Christopher Dodd", "George LeMieux" , "Roland Burris" , "Evan Bayh", "Samuel Brownback")
{txt}(9,654 observations deleted)

{com}. drop if inlist(sen_cces_name,  "Jim Bunning" , "Christopher 'Kit' Bond" , "Judd Gregg" , "Byron Dorgan" , "George Voinovich"  , "Arlen Specter" , "Robert Bennett")
{txt}(7,938 observations deleted)

{com}. eststo k_iv_vc_1_g: ivregress 2sls  R_vote_inc  /// 
>         ( sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement)  if gop_lean==1, cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}       780
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}   3152.61
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7426
{txt}{col 51}Root MSE{col 67}=    {res} .25046

{txt}{ralign 85:(Std. Err. adjusted for {res:710} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1141422{col 33}{space 2}  .050409{col 44}{space 1}    2.26{col 53}{space 3}0.024{col 61}{space 4} .0153423{col 74}{space 3}  .212942
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .4084124{col 33}{space 2} .0407202{col 44}{space 1}   10.03{col 53}{space 3}0.000{col 61}{space 4} .3286023{col 74}{space 3} .4882226
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5061259{col 33}{space 2} .0096838{col 44}{space 1}   52.27{col 53}{space 3}0.000{col 61}{space 4}  .487146{col 74}{space 3} .5251057
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,709){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.7121{col 29}{space 2}0.7114{col 41}{space 3}0.7121{col 53}{space 3} 890.535{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.8476{col 29}{space 2}0.8472{col 41}{space 3}0.8476{col 53}{space 3} 2953.37{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}710{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.3231{col 35}{space 6}0.3223
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.3846{col 35}{space 6}0.3838
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo k_iv_vc_2_g: ivregress 2sls  R_vote_inc `controls'   /// 
>         ( sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement) if gop_lean==1, cluster(case_id_new)
{res}{txt}note: dem_lean omitted because of collinearity
note: gop_lean omitted because of collinearity
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}       747
{txt}{col 1}{col 51}Wald chi2({res}13{txt}){col 67}= {res}   4585.48
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7697
{txt}{col 51}Root MSE{col 67}=    {res} .23718

{txt}{ralign 85:(Std. Err. adjusted for {res:679} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .1012791{col 33}{space 2} .0504166{col 44}{space 1}    2.01{col 53}{space 3}0.045{col 61}{space 4} .0024644{col 74}{space 3} .2000938
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .3647242{col 33}{space 2} .0452677{col 44}{space 1}    8.06{col 53}{space 3}0.000{col 61}{space 4} .2760012{col 74}{space 3} .4534472
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0331227{col 33}{space 2} .1094574{col 44}{space 1}    0.30{col 53}{space 3}0.762{col 61}{space 4}  -.18141{col 74}{space 3} .2476553
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0200291{col 33}{space 2} .1096715{col 44}{space 1}    0.18{col 53}{space 3}0.855{col 61}{space 4}-.1949231{col 74}{space 3} .2349814
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0019614{col 33}{space 2} .1116803{col 44}{space 1}    0.02{col 53}{space 3}0.986{col 61}{space 4}-.2169279{col 74}{space 3} .2208507
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0110051{col 33}{space 2}  .019795{col 44}{space 1}    0.56{col 53}{space 3}0.578{col 61}{space 4}-.0277923{col 74}{space 3} .0498025
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.1106658{col 33}{space 2} .0753227{col 44}{space 1}   -1.47{col 53}{space 3}0.142{col 61}{space 4}-.2582957{col 74}{space 3} .0369641
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0405473{col 33}{space 2} .0770339{col 44}{space 1}   -0.53{col 53}{space 3}0.599{col 61}{space 4} -.191531{col 74}{space 3} .1104364
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0308052{col 33}{space 2} .0967288{col 44}{space 1}    0.32{col 53}{space 3}0.750{col 61}{space 4}-.1587797{col 74}{space 3} .2203901
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .013122{col 33}{space 2} .0886229{col 44}{space 1}    0.15{col 53}{space 3}0.882{col 61}{space 4}-.1605756{col 74}{space 3} .1868196
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0090528{col 33}{space 2} .0882544{col 44}{space 1}    0.10{col 53}{space 3}0.918{col 61}{space 4}-.1639226{col 74}{space 3} .1820283
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 11}gop_lean {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 6}engage_factor {c |}{col 21}{res}{space 2} .0453827{col 33}{space 2} .0303773{col 44}{space 1}    1.49{col 53}{space 3}0.135{col 61}{space 4}-.0141557{col 74}{space 3}  .104921
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1390071{col 33}{space 2}  .053765{col 44}{space 1}    2.59{col 53}{space 3}0.010{col 61}{space 4} .0336296{col 74}{space 3} .2443846
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4043336{col 33}{space 2} .1403475{col 44}{space 1}    2.88{col 53}{space 3}0.004{col 61}{space 4} .1292575{col 74}{space 3} .6794097
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat engage_factor sen_actual_ideo_agreement sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}   F(2,678){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.7237{col 29}{space 2}0.7188{col 41}{space 3}0.4946{col 53}{space 3} 246.388{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.8563{col 29}{space 2}0.8538{col 41}{space 3}0.6799{col 53}{space 3} 451.639{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}679{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.3279{col 35}{space 6}0.3123
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.4508{col 35}{space 6}0.4380
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. 
. esttab  sk_iv_approval_1_g sk_iv_approval_2_g k_iv_vc_1_g k_iv_vc_2_g /// 
>         using  "table_A16_soto_kagan.tex", keep(sen_perc_nominee_agreement sen_perc_party_agreement) nomtitles  ///
>         replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Regressions of voters' assessment of Sotomayor and Kagan, Republicans only\label{c -(}foo{c )-})    
{res}{txt}(output written to {browse  `"table_A16_soto_kagan.tex"'})

{com}.         
. 
. *table A-21, Separate results for Sotomayor and Kagan, just IV models for approval (recall vote choice is just based on Kagan)
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. *sotomayor
. eststo s_iv_approval_1: ivregress 2sls sen_approval_binary  ///
>         (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement) ///
>         if nominee=="sotomayor", cluster(case_id_new) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     4,748
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}   1950.29
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.3422
{txt}{col 51}Root MSE{col 67}=    {res} .40422

{txt}{ralign 85:(Std. Err. adjusted for {res:2,563} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .2233077{col 33}{space 2} .0232838{col 44}{space 1}    9.59{col 53}{space 3}0.000{col 61}{space 4} .1776723{col 74}{space 3}  .268943
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2457774{col 33}{space 2} .0173556{col 44}{space 1}   14.16{col 53}{space 3}0.000{col 61}{space 4} .2117611{col 74}{space 3} .2797937
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .5160076{col 33}{space 2} .0069984{col 44}{space 1}   73.73{col 53}{space 3}0.000{col 61}{space 4}  .502291{col 74}{space 3} .5297242
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,2562){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.4581{col 29}{space 2}0.4578{col 41}{space 3}0.4581{col 53}{space 3} 1392.33{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.6672{col 29}{space 2}0.6670{col 41}{space 3}0.6672{col 53}{space 3} 3206.11{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}2563{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2449{col 35}{space 6}0.2448
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.3567{col 35}{space 6}0.3566
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo s_iv_approval_2: ivregress 2sls  sen_approval_binary   `controls' /// 
>         (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement) ///
>         if nominee=="sotomayor", cluster(case_id_new) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     4,305
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   2470.56
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.3778
{txt}{col 51}Root MSE{col 67}=    {res} .39293

{txt}{ralign 85:(Std. Err. adjusted for {res:2,235} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .2129676{col 33}{space 2} .0263035{col 44}{space 1}    8.10{col 53}{space 3}0.000{col 61}{space 4} .1614137{col 74}{space 3} .2645215
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2095883{col 33}{space 2} .0185587{col 44}{space 1}   11.29{col 53}{space 3}0.000{col 61}{space 4}  .173214{col 74}{space 3} .2459627
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0374501{col 33}{space 2} .0397411{col 44}{space 1}   -0.94{col 53}{space 3}0.346{col 61}{space 4}-.1153412{col 74}{space 3} .0404409
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0580396{col 33}{space 2} .0415823{col 44}{space 1}   -1.40{col 53}{space 3}0.163{col 61}{space 4}-.1395394{col 74}{space 3} .0234601
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0536255{col 33}{space 2} .0432748{col 44}{space 1}   -1.24{col 53}{space 3}0.215{col 61}{space 4}-.1384426{col 74}{space 3} .0311916
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0495377{col 33}{space 2} .0148625{col 44}{space 1}    3.33{col 53}{space 3}0.001{col 61}{space 4} .0204078{col 74}{space 3} .0786676
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0405494{col 33}{space 2} .0228714{col 44}{space 1}    1.77{col 53}{space 3}0.076{col 61}{space 4}-.0042777{col 74}{space 3} .0853765
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0409971{col 33}{space 2} .0238755{col 44}{space 1}    1.72{col 53}{space 3}0.086{col 61}{space 4} -.005798{col 74}{space 3} .0877921
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} -.040001{col 33}{space 2} .0260003{col 44}{space 1}   -1.54{col 53}{space 3}0.124{col 61}{space 4}-.0909607{col 74}{space 3} .0109586
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0133756{col 33}{space 2} .0251757{col 44}{space 1}   -0.53{col 53}{space 3}0.595{col 61}{space 4}-.0627192{col 74}{space 3} .0359679
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0002465{col 33}{space 2} .0282628{col 44}{space 1}   -0.01{col 53}{space 3}0.993{col 61}{space 4}-.0556405{col 74}{space 3} .0551475
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0538314{col 33}{space 2} .0287393{col 44}{space 1}    1.87{col 53}{space 3}0.061{col 61}{space 4}-.0024965{col 74}{space 3} .1101594
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0786766{col 33}{space 2} .0272639{col 44}{space 1}    2.89{col 53}{space 3}0.004{col 61}{space 4} .0252403{col 74}{space 3}  .132113
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0133098{col 33}{space 2} .0076796{col 44}{space 1}   -1.73{col 53}{space 3}0.083{col 61}{space 4}-.0283616{col 74}{space 3}  .001742
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1471181{col 33}{space 2} .0287885{col 44}{space 1}    5.11{col 53}{space 3}0.000{col 61}{space 4} .0906937{col 74}{space 3} .2035425
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4322596{col 33}{space 2} .0516303{col 44}{space 1}    8.37{col 53}{space 3}0.000{col 61}{space 4} .3310661{col 74}{space 3} .5334531
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,2234){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.4771{col 29}{space 2}0.4752{col 41}{space 3}0.3094{col 53}{space 3} 594.154{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.6759{col 29}{space 2}0.6748{col 41}{space 3}0.5357{col 53}{space 3} 1269.88{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}2235{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2262{col 35}{space 6}0.2232
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.3917{col 35}{space 6}0.3893
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. *kagan
. eststo k_iv_approval_1: ivregress 2sls sen_approval_binary  ///
>         (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement) ///
>         if nominee=="kagan", cluster(case_id_new) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     9,418
{txt}{col 1}{col 51}Wald chi2({res}2{txt}){col 67}= {res}   6530.43
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.4412
{txt}{col 51}Root MSE{col 67}=    {res} .37375

{txt}{ralign 85:(Std. Err. adjusted for {res:4,950} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .2672028{col 33}{space 2}   .01832{col 44}{space 1}   14.59{col 53}{space 3}0.000{col 61}{space 4} .2312961{col 74}{space 3} .3031094
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2170219{col 33}{space 2}  .013743{col 44}{space 1}   15.79{col 53}{space 3}0.000{col 61}{space 4} .1900861{col 74}{space 3} .2439578
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4870142{col 33}{space 2} .0045152{col 44}{space 1}  107.86{col 53}{space 3}0.000{col 61}{space 4} .4781644{col 74}{space 3} .4958639
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,4949){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.5381{col 29}{space 2}0.5380{col 41}{space 3}0.5381{col 53}{space 3} 3683.83{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.7370{col 29}{space 2}0.7370{col 41}{space 3}0.7370{col 53}{space 3}   10310{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}4950{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2330{col 35}{space 6}0.2330
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.3192{col 35}{space 6}0.3191
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. eststo k_iv_approval_2: ivregress 2sls  sen_approval_binary   `controls' /// 
>         (sen_perc_nominee_agreement sen_perc_party_agreement = sen_actual_nominee_agreement sen_actual_party_agreement) ///
>         if nominee=="kagan", cluster(case_id_new) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     8,824
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   8032.79
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.4614
{txt}{col 51}Root MSE{col 67}=    {res} .36692

{txt}{ralign 85:(Std. Err. adjusted for {res:4,603} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_nominee_~t {c |}{col 21}{res}{space 2} .2485251{col 33}{space 2} .0190041{col 44}{space 1}   13.08{col 53}{space 3}0.000{col 61}{space 4} .2112776{col 74}{space 3} .2857725
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .1952361{col 33}{space 2} .0135948{col 44}{space 1}   14.36{col 53}{space 3}0.000{col 61}{space 4} .1685908{col 74}{space 3} .2218814
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0503913{col 33}{space 2}  .041639{col 44}{space 1}    1.21{col 53}{space 3}0.226{col 61}{space 4}-.0312197{col 74}{space 3} .1320022
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0367008{col 33}{space 2}  .041593{col 44}{space 1}    0.88{col 53}{space 3}0.378{col 61}{space 4}-.0448199{col 74}{space 3} .1182214
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0658758{col 33}{space 2} .0421986{col 44}{space 1}    1.56{col 53}{space 3}0.119{col 61}{space 4}-.0168319{col 74}{space 3} .1485835
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0287127{col 33}{space 2}  .009489{col 44}{space 1}    3.03{col 53}{space 3}0.002{col 61}{space 4} .0101146{col 74}{space 3} .0473108
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0419615{col 33}{space 2} .0177519{col 44}{space 1}    2.36{col 53}{space 3}0.018{col 61}{space 4} .0071684{col 74}{space 3} .0767546
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0579086{col 33}{space 2} .0223284{col 44}{space 1}    2.59{col 53}{space 3}0.010{col 61}{space 4} .0141457{col 74}{space 3} .1016715
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0737767{col 33}{space 2} .0260416{col 44}{space 1}   -2.83{col 53}{space 3}0.005{col 61}{space 4}-.1248172{col 74}{space 3}-.0227361
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0387267{col 33}{space 2} .0235368{col 44}{space 1}   -1.65{col 53}{space 3}0.100{col 61}{space 4} -.084858{col 74}{space 3} .0074047
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0324764{col 33}{space 2} .0246244{col 44}{space 1}   -1.32{col 53}{space 3}0.187{col 61}{space 4}-.0807394{col 74}{space 3} .0157865
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}  .075636{col 33}{space 2}  .019752{col 44}{space 1}    3.83{col 53}{space 3}0.000{col 61}{space 4} .0369228{col 74}{space 3} .1143492
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0797671{col 33}{space 2} .0193569{col 44}{space 1}    4.12{col 53}{space 3}0.000{col 61}{space 4} .0418282{col 74}{space 3}  .117706
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0082188{col 33}{space 2} .0056406{col 44}{space 1}   -1.46{col 53}{space 3}0.145{col 61}{space 4}-.0192741{col 74}{space 3} .0028365
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0944412{col 33}{space 2} .0181907{col 44}{space 1}    5.19{col 53}{space 3}0.000{col 61}{space 4} .0587881{col 74}{space 3} .1300944
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3505974{col 33}{space 2} .0493596{col 44}{space 1}    7.10{col 53}{space 3}0.000{col 61}{space 4} .2538543{col 74}{space 3} .4473405
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_nominee_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_nominee_agreement sen_actual_party_agreement{p_end}

{com}. estat firststage, all

{txt}{col 3}First-stage regression summary statistics
{col 3}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 16}{c |}{col 29}Adjusted{col 43}Partial{col 57}Robust
{col 3}{text}    Variable{col 16}{c |}   R-sq.{col 29}   R-sq.{col 41}    R-sq.{col 53}  F(2,4602){col 65}  Prob > F
{col 3}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 2}0.5646{col 29}{space 2}0.5639{col 41}{space 3}0.3869{col 53}{space 3} 1640.66{col 65}{space 3}0.0000
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 2}0.7457{col 29}{space 2}0.7453{col 41}{space 3}0.6157{col 53}{space 3} 3870.77{col 65}{space 3}0.0000
{col 3}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 12}{hline 12}{hline 12}
{col 3}(F statistics adjusted for {res}4603{txt} clusters in case_id_new)


{col 3}Shea's partial R-squared
{col 3}{text}{hline 13}{c TT}{hline 18}{hline 18}
{col 16}{c |}{col 22}Shea's{col 41}Shea's
{col 3}{text}    Variable{col 16}{c |}  Partial R-sq.{col 35}Adj. Partial R-sq.
{col 3}{text}{hline 13}{c +}{hline 18}{hline 18}
{col 3}{text}sen_perc_n~t{col 16}{c |}{result}{space 5}0.2414{col 35}{space 6}0.2399
{col 3}{text}sen_perc_p~t{col 16}{c |}{result}{space 5}0.3841{col 35}{space 6}0.3829
{col 3}{text}{hline 13}{c BT}{hline 18}{hline 18}


{com}. 
. esttab  s_iv_approval_1 s_iv_approval_2  k_iv_approval_1 k_iv_approval_2  /// 
>         using  "table_A21.tex", /// 
>         keep(sen_perc_nominee_agreement sen_perc_party_agreement) nomtitles  ///
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Separate IV approval results for Sotomayor and Kagan \label{c -(}foo{c )-})
{res}{txt}(output written to {browse  `"table_A21.tex"'})

{com}. 
.         
. ***IV Regressions to create Figure 7
. 
. // •  2009-Sotomayor:
. // o    R_rollcall_ledbetter
. // o    R_rollcall_recoveryreinvest
. // o    R_rollcall_childrenshealth
. // •  2010-Kagan:
. // o    R_rollcall_recoveryreinvest
. // o    R_rollcall_healthreform
. // o    R_rollcall_financialreform
. // o    R_rollcall_enddontask
. **************************************************
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement 
{txt}
{com}. 
. *USING APPROVAL
. *LILLY LEDBETTER
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}.  eststo ledbetter_sen_approval_4:ivregress 2sls  sen_approval_binary  `controls'        ///
>         ( sen_perc_ledbetter_agreement sen_perc_party_agreement = sen_actual_ledbetter_agreement sen_actual_party_agreement), cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     4,272
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   2309.06
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.3637
{txt}{col 51}Root MSE{col 67}=    {res} .39735

{txt}{ralign 85:(Std. Err. adjusted for {res:2,233} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_ledbette~t {c |}{col 21}{res}{space 2} .0854415{col 33}{space 2} .0257529{col 44}{space 1}    3.32{col 53}{space 3}0.001{col 61}{space 4} .0349666{col 74}{space 3} .1359163
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2}  .265643{col 33}{space 2} .0167455{col 44}{space 1}   15.86{col 53}{space 3}0.000{col 61}{space 4} .2328225{col 74}{space 3} .2984636
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0371906{col 33}{space 2} .0395517{col 44}{space 1}   -0.94{col 53}{space 3}0.347{col 61}{space 4}-.1147105{col 74}{space 3} .0403294
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0450541{col 33}{space 2}  .041253{col 44}{space 1}   -1.09{col 53}{space 3}0.275{col 61}{space 4}-.1259086{col 74}{space 3} .0358003
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0361077{col 33}{space 2} .0427678{col 44}{space 1}   -0.84{col 53}{space 3}0.399{col 61}{space 4}-.1199311{col 74}{space 3} .0477158
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0414992{col 33}{space 2} .0149111{col 44}{space 1}    2.78{col 53}{space 3}0.005{col 61}{space 4} .0122739{col 74}{space 3} .0707245
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0433543{col 33}{space 2} .0234131{col 44}{space 1}    1.85{col 53}{space 3}0.064{col 61}{space 4}-.0025346{col 74}{space 3} .0892431
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0529522{col 33}{space 2} .0245963{col 44}{space 1}    2.15{col 53}{space 3}0.031{col 61}{space 4} .0047443{col 74}{space 3} .1011601
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0372264{col 33}{space 2} .0261433{col 44}{space 1}   -1.42{col 53}{space 3}0.154{col 61}{space 4}-.0884664{col 74}{space 3} .0140136
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0177511{col 33}{space 2} .0254683{col 44}{space 1}   -0.70{col 53}{space 3}0.486{col 61}{space 4} -.067668{col 74}{space 3} .0321658
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0075379{col 33}{space 2} .0282385{col 44}{space 1}   -0.27{col 53}{space 3}0.790{col 61}{space 4}-.0628844{col 74}{space 3} .0478085
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1129609{col 33}{space 2} .0297685{col 44}{space 1}    3.79{col 53}{space 3}0.000{col 61}{space 4} .0546156{col 74}{space 3} .1713061
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0921433{col 33}{space 2} .0293968{col 44}{space 1}    3.13{col 53}{space 3}0.002{col 61}{space 4} .0345266{col 74}{space 3} .1497601
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0126588{col 33}{space 2} .0076499{col 44}{space 1}   -1.65{col 53}{space 3}0.098{col 61}{space 4}-.0276522{col 74}{space 3} .0023347
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2102111{col 33}{space 2} .0284829{col 44}{space 1}    7.38{col 53}{space 3}0.000{col 61}{space 4} .1543856{col 74}{space 3} .2660366
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}   .36344{col 33}{space 2} .0518594{col 44}{space 1}    7.01{col 53}{space 3}0.000{col 61}{space 4} .2617975{col 74}{space 3} .4650825
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_ledbetter_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_ledbetter_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, ledbetter_approval_iv_with_controls) append                      
{txt}{p 0 7 2}
(note: variable
label was 
str35, now str36 to accommodate using data's values)
{p_end}
file saved_regression_results_for_figure7.dta saved

{com}.         
. *CHIP
. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. eststo CHIP_sen_approval_4: ivregress 2sls  sen_approval_binary  `controls' /// 
>         ( sen_perc_CHIP_agreement sen_perc_party_agreement = sen_actual_CHIP_agreement sen_actual_party_agreement), cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     4,282
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   2291.62
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.3667
{txt}{col 51}Root MSE{col 67}=    {res} .39646

{txt}{ralign 85:(Std. Err. adjusted for {res:2,229} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_CHIP_agr~t {c |}{col 21}{res}{space 2} .1021189{col 33}{space 2} .0220611{col 44}{space 1}    4.63{col 53}{space 3}0.000{col 61}{space 4} .0588798{col 74}{space 3} .1453579
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2601659{col 33}{space 2} .0157627{col 44}{space 1}   16.51{col 53}{space 3}0.000{col 61}{space 4} .2292716{col 74}{space 3} .2910602
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0551732{col 33}{space 2} .0397645{col 44}{space 1}   -1.39{col 53}{space 3}0.165{col 61}{space 4}-.1331102{col 74}{space 3} .0227639
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0556242{col 33}{space 2} .0414835{col 44}{space 1}   -1.34{col 53}{space 3}0.180{col 61}{space 4}-.1369304{col 74}{space 3} .0256821
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.041054{col 33}{space 2}  .043155{col 44}{space 1}   -0.95{col 53}{space 3}0.341{col 61}{space 4}-.1256362{col 74}{space 3} .0435283
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0431896{col 33}{space 2} .0149158{col 44}{space 1}    2.90{col 53}{space 3}0.004{col 61}{space 4} .0139551{col 74}{space 3} .0724241
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0388907{col 33}{space 2} .0234168{col 44}{space 1}    1.66{col 53}{space 3}0.097{col 61}{space 4}-.0070054{col 74}{space 3} .0847868
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0429826{col 33}{space 2} .0247427{col 44}{space 1}    1.74{col 53}{space 3}0.082{col 61}{space 4}-.0055121{col 74}{space 3} .0914773
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0325056{col 33}{space 2}  .025785{col 44}{space 1}   -1.26{col 53}{space 3}0.207{col 61}{space 4}-.0830433{col 74}{space 3} .0180321
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0101116{col 33}{space 2} .0250637{col 44}{space 1}   -0.40{col 53}{space 3}0.687{col 61}{space 4}-.0592355{col 74}{space 3} .0390123
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0057905{col 33}{space 2} .0282548{col 44}{space 1}    0.20{col 53}{space 3}0.838{col 61}{space 4}-.0495879{col 74}{space 3}  .061169
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1006293{col 33}{space 2} .0298857{col 44}{space 1}    3.37{col 53}{space 3}0.001{col 61}{space 4} .0420544{col 74}{space 3} .1592041
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0829509{col 33}{space 2} .0291376{col 44}{space 1}    2.85{col 53}{space 3}0.004{col 61}{space 4} .0258423{col 74}{space 3} .1400596
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0142817{col 33}{space 2} .0075599{col 44}{space 1}   -1.89{col 53}{space 3}0.059{col 61}{space 4}-.0290989{col 74}{space 3} .0005355
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .2116856{col 33}{space 2} .0278629{col 44}{space 1}    7.60{col 53}{space 3}0.000{col 61}{space 4} .1570753{col 74}{space 3} .2662959
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3652742{col 33}{space 2} .0516473{col 44}{space 1}    7.07{col 53}{space 3}0.000{col 61}{space 4} .2640474{col 74}{space 3} .4665009
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_CHIP_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_CHIP_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, CHIP_approval_iv_with_controls) append   
{txt}{p 0 7 2}
(note: variable
var was 
str25, now str28 to accommodate using data's values)
{p_end}
{p 0 7 2}
(note: variable
label was 
str30, now str36 to accommodate using data's values)
{p_end}
file saved_regression_results_for_figure7.dta saved

{com}. 
. *ACA
. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. eststo aca_sen_approval_4: ivregress 2sls  sen_approval_binary  /// 
>         `controls' ( sen_perc_aca_agreement sen_perc_party_agreement = sen_actual_aca_agreement sen_actual_party_agreement), cluster(case_id_new)       
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     8,815
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   8191.63
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.4738
{txt}{col 51}Root MSE{col 67}=    {res} .36268

{txt}{ralign 85:(Std. Err. adjusted for {res:4,607} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_aca_agre~t {c |}{col 21}{res}{space 2} .2057294{col 33}{space 2} .0192111{col 44}{space 1}   10.71{col 53}{space 3}0.000{col 61}{space 4} .1680764{col 74}{space 3} .2433825
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2}  .172319{col 33}{space 2} .0166991{col 44}{space 1}   10.32{col 53}{space 3}0.000{col 61}{space 4} .1395892{col 74}{space 3} .2050487
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0431474{col 33}{space 2} .0410312{col 44}{space 1}    1.05{col 53}{space 3}0.293{col 61}{space 4}-.0372722{col 74}{space 3}  .123567
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0231504{col 33}{space 2} .0408714{col 44}{space 1}    0.57{col 53}{space 3}0.571{col 61}{space 4}-.0569562{col 74}{space 3}  .103257
{txt}{space 17}4  {c |}{col 21}{res}{space 2}  .049793{col 33}{space 2} .0414629{col 44}{space 1}    1.20{col 53}{space 3}0.230{col 61}{space 4}-.0314729{col 74}{space 3} .1310588
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0303703{col 33}{space 2} .0093831{col 44}{space 1}    3.24{col 53}{space 3}0.001{col 61}{space 4} .0119798{col 74}{space 3} .0487608
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0409551{col 33}{space 2} .0174869{col 44}{space 1}    2.34{col 53}{space 3}0.019{col 61}{space 4} .0066815{col 74}{space 3} .0752287
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0527887{col 33}{space 2} .0221465{col 44}{space 1}    2.38{col 53}{space 3}0.017{col 61}{space 4} .0093825{col 74}{space 3}  .096195
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0548264{col 33}{space 2} .0260658{col 44}{space 1}   -2.10{col 53}{space 3}0.035{col 61}{space 4}-.1059145{col 74}{space 3}-.0037384
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0238181{col 33}{space 2} .0235136{col 44}{space 1}   -1.01{col 53}{space 3}0.311{col 61}{space 4}-.0699039{col 74}{space 3} .0222677
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0207363{col 33}{space 2} .0244715{col 44}{space 1}   -0.85{col 53}{space 3}0.397{col 61}{space 4}-.0686996{col 74}{space 3} .0272269
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}  .106213{col 33}{space 2} .0193915{col 44}{space 1}    5.48{col 53}{space 3}0.000{col 61}{space 4} .0682062{col 74}{space 3} .1442197
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0710658{col 33}{space 2} .0192545{col 44}{space 1}    3.69{col 53}{space 3}0.000{col 61}{space 4} .0333276{col 74}{space 3}  .108804
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0047184{col 33}{space 2}  .005604{col 44}{space 1}   -0.84{col 53}{space 3}0.400{col 61}{space 4}-.0157021{col 74}{space 3} .0062653
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1332354{col 33}{space 2} .0176654{col 44}{space 1}    7.54{col 53}{space 3}0.000{col 61}{space 4} .0986119{col 74}{space 3}  .167859
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3275766{col 33}{space 2} .0489874{col 44}{space 1}    6.69{col 53}{space 3}0.000{col 61}{space 4} .2315631{col 74}{space 3} .4235901
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_aca_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_aca_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, aca_approval_iv_with_controls) append    
{txt}{p 0 7 2}
(note: variable
var was 
str25, now str28 to accommodate using data's values)
{p_end}
{p 0 7 2}
(note: variable
label was 
str29, now str36 to accommodate using data's values)
{p_end}
file saved_regression_results_for_figure7.dta saved

{com}. 
. *DODD-FRANK
. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. eststo doddfrank_sen_approval_4:ivregress 2sls  sen_approval_binary  /// 
>         `controls'      ( sen_perc_doddfrank_agreement sen_perc_party_agreement = sen_actual_doddfrank_agreement sen_actual_party_agreement), cluster(case_id_new)      
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     8,777
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   7302.88
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.4380
{txt}{col 51}Root MSE{col 67}=    {res} .37481

{txt}{ralign 85:(Std. Err. adjusted for {res:4,589} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_doddfran~t {c |}{col 21}{res}{space 2} .0781335{col 33}{space 2} .0122782{col 44}{space 1}    6.36{col 53}{space 3}0.000{col 61}{space 4} .0540687{col 74}{space 3} .1021984
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2785204{col 33}{space 2} .0109498{col 44}{space 1}   25.44{col 53}{space 3}0.000{col 61}{space 4} .2570592{col 74}{space 3} .2999816
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}  .025721{col 33}{space 2} .0454014{col 44}{space 1}    0.57{col 53}{space 3}0.571{col 61}{space 4}-.0632641{col 74}{space 3} .1147061
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0072651{col 33}{space 2}  .045335{col 44}{space 1}    0.16{col 53}{space 3}0.873{col 61}{space 4}-.0815899{col 74}{space 3} .0961201
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0325968{col 33}{space 2} .0460144{col 44}{space 1}    0.71{col 53}{space 3}0.479{col 61}{space 4}-.0575897{col 74}{space 3} .1227833
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0297618{col 33}{space 2} .0096545{col 44}{space 1}    3.08{col 53}{space 3}0.002{col 61}{space 4} .0108393{col 74}{space 3} .0486843
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0404072{col 33}{space 2} .0181501{col 44}{space 1}    2.23{col 53}{space 3}0.026{col 61}{space 4} .0048338{col 74}{space 3} .0759807
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0424302{col 33}{space 2} .0230961{col 44}{space 1}    1.84{col 53}{space 3}0.066{col 61}{space 4}-.0028372{col 74}{space 3} .0876977
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0568686{col 33}{space 2} .0259333{col 44}{space 1}   -2.19{col 53}{space 3}0.028{col 61}{space 4} -.107697{col 74}{space 3}-.0060402
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0249963{col 33}{space 2} .0233393{col 44}{space 1}   -1.07{col 53}{space 3}0.284{col 61}{space 4}-.0707405{col 74}{space 3} .0207479
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0251213{col 33}{space 2} .0244645{col 44}{space 1}   -1.03{col 53}{space 3}0.304{col 61}{space 4} -.073071{col 74}{space 3} .0228283
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}  .112198{col 33}{space 2} .0206839{col 44}{space 1}    5.42{col 53}{space 3}0.000{col 61}{space 4} .0716582{col 74}{space 3} .1527377
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0787942{col 33}{space 2} .0206505{col 44}{space 1}    3.82{col 53}{space 3}0.000{col 61}{space 4} .0383199{col 74}{space 3} .1192684
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0019433{col 33}{space 2} .0057745{col 44}{space 1}   -0.34{col 53}{space 3}0.736{col 61}{space 4}-.0132611{col 74}{space 3} .0093745
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1766038{col 33}{space 2} .0179158{col 44}{space 1}    9.86{col 53}{space 3}0.000{col 61}{space 4} .1414896{col 74}{space 3} .2117181
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3133202{col 33}{space 2} .0528227{col 44}{space 1}    5.93{col 53}{space 3}0.000{col 61}{space 4} .2097895{col 74}{space 3} .4168509
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_doddfrank_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_doddfrank_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, doddfrank_approval_iv_with_controls) append      
{txt}{p 0 7 2}
(note: variable
label was 
str35, now str36 to accommodate using data's values)
{p_end}
file saved_regression_results_for_figure7.dta saved

{com}. 
. *DON'T ASK, DON'T TELL
. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. eststo enddontask_sen_approval_4:ivregress 2sls  sen_approval_binary ///   
>         `controls' ( sen_perc_enddontask_agreement sen_perc_party_agreement = sen_actual_enddontask_agreement sen_actual_party_agreement), cluster(case_id_new) 
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     8,768
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   6753.04
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.4207
{txt}{col 51}Root MSE{col 67}=    {res} .38052

{txt}{ralign 85:(Std. Err. adjusted for {res:4,583} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_enddonta~t {c |}{col 21}{res}{space 2} .1796663{col 33}{space 2} .0255115{col 44}{space 1}    7.04{col 53}{space 3}0.000{col 61}{space 4} .1296647{col 74}{space 3} .2296679
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2570377{col 33}{space 2} .0123498{col 44}{space 1}   20.81{col 53}{space 3}0.000{col 61}{space 4} .2328325{col 74}{space 3}  .281243
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0110013{col 33}{space 2} .0462813{col 44}{space 1}    0.24{col 53}{space 3}0.812{col 61}{space 4}-.0797085{col 74}{space 3}  .101711
{txt}{space 17}3  {c |}{col 21}{res}{space 2} -.001774{col 33}{space 2}  .046225{col 44}{space 1}   -0.04{col 53}{space 3}0.969{col 61}{space 4}-.0923732{col 74}{space 3} .0888253
{txt}{space 17}4  {c |}{col 21}{res}{space 2} .0295324{col 33}{space 2} .0469268{col 44}{space 1}    0.63{col 53}{space 3}0.529{col 61}{space 4}-.0624425{col 74}{space 3} .1215073
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2}  .029592{col 33}{space 2} .0098261{col 44}{space 1}    3.01{col 53}{space 3}0.003{col 61}{space 4} .0103331{col 74}{space 3} .0488509
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0453377{col 33}{space 2} .0183741{col 44}{space 1}    2.47{col 53}{space 3}0.014{col 61}{space 4} .0093252{col 74}{space 3} .0813503
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0561541{col 33}{space 2} .0231836{col 44}{space 1}    2.42{col 53}{space 3}0.015{col 61}{space 4}  .010715{col 74}{space 3} .1015933
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2} -.051006{col 33}{space 2} .0262497{col 44}{space 1}   -1.94{col 53}{space 3}0.052{col 61}{space 4}-.1024544{col 74}{space 3} .0004424
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0166001{col 33}{space 2} .0236736{col 44}{space 1}   -0.70{col 53}{space 3}0.483{col 61}{space 4}-.0629995{col 74}{space 3} .0297993
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0158055{col 33}{space 2} .0247942{col 44}{space 1}   -0.64{col 53}{space 3}0.524{col 61}{space 4}-.0644013{col 74}{space 3} .0327903
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1247709{col 33}{space 2} .0207762{col 44}{space 1}    6.01{col 53}{space 3}0.000{col 61}{space 4} .0840503{col 74}{space 3} .1654915
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0790234{col 33}{space 2} .0207846{col 44}{space 1}    3.80{col 53}{space 3}0.000{col 61}{space 4} .0382863{col 74}{space 3} .1197606
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0047352{col 33}{space 2} .0057437{col 44}{space 1}   -0.82{col 53}{space 3}0.410{col 61}{space 4}-.0159926{col 74}{space 3} .0065223
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1499773{col 33}{space 2} .0189401{col 44}{space 1}    7.92{col 53}{space 3}0.000{col 61}{space 4} .1128554{col 74}{space 3} .1870992
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3212104{col 33}{space 2} .0537447{col 44}{space 1}    5.98{col 53}{space 3}0.000{col 61}{space 4} .2158726{col 74}{space 3} .4265481
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_enddontask_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_enddontask_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, dadt_approval_iv_with_controls) append   
{txt}{p 0 7 2}
(note: variable
label was 
str30, now str36 to accommodate using data's values)
{p_end}
file saved_regression_results_for_figure7.dta saved

{com}. 
. *STIMULUS [pools both 2009 and 2010]
. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. eststo stimulus_sen_approval_4:ivregress 2sls  sen_approval_binary  `controls' /// 
>         (sen_perc_stimulus_agreement sen_perc_party_agreement =                 sen_actual_stimulus_agreement sen_actual_party_agreement), cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}    13,120
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}  10193.28
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.4463
{txt}{col 51}Root MSE{col 67}=    {res} .37174

{txt}{ralign 85:(Std. Err. adjusted for {res:6,854} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}sen_approval_binary{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_stimulus~t {c |}{col 21}{res}{space 2} .1911792{col 33}{space 2} .0157264{col 44}{space 1}   12.16{col 53}{space 3}0.000{col 61}{space 4} .1603559{col 74}{space 3} .2220024
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .2014181{col 33}{space 2} .0122248{col 44}{space 1}   16.48{col 53}{space 3}0.000{col 61}{space 4}  .177458{col 74}{space 3} .2253782
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0228003{col 33}{space 2} .0294788{col 44}{space 1}   -0.77{col 53}{space 3}0.439{col 61}{space 4}-.0805776{col 74}{space 3} .0349771
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0483257{col 33}{space 2} .0296019{col 44}{space 1}   -1.63{col 53}{space 3}0.103{col 61}{space 4}-.1063443{col 74}{space 3} .0096929
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.029999{col 33}{space 2}  .030121{col 44}{space 1}   -1.00{col 53}{space 3}0.319{col 61}{space 4}-.0890352{col 74}{space 3} .0290371
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0297185{col 33}{space 2} .0078558{col 44}{space 1}    3.78{col 53}{space 3}0.000{col 61}{space 4} .0143214{col 74}{space 3} .0451157
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0385133{col 33}{space 2} .0138212{col 44}{space 1}    2.79{col 53}{space 3}0.005{col 61}{space 4} .0114242{col 74}{space 3} .0656024
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0494089{col 33}{space 2} .0158833{col 44}{space 1}    3.11{col 53}{space 3}0.002{col 61}{space 4} .0182782{col 74}{space 3} .0805397
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0505659{col 33}{space 2} .0181519{col 44}{space 1}   -2.79{col 53}{space 3}0.005{col 61}{space 4} -.086143{col 74}{space 3}-.0149887
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0307964{col 33}{space 2} .0166515{col 44}{space 1}   -1.85{col 53}{space 3}0.064{col 61}{space 4}-.0634327{col 74}{space 3}   .00184
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0231631{col 33}{space 2} .0175762{col 44}{space 1}   -1.32{col 53}{space 3}0.188{col 61}{space 4}-.0576118{col 74}{space 3} .0112856
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0751287{col 33}{space 2} .0161027{col 44}{space 1}    4.67{col 53}{space 3}0.000{col 61}{space 4}  .043568{col 74}{space 3} .1066894
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0632609{col 33}{space 2} .0156069{col 44}{space 1}    4.05{col 53}{space 3}0.000{col 61}{space 4}  .032672{col 74}{space 3} .0938499
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0049316{col 33}{space 2} .0043732{col 44}{space 1}   -1.13{col 53}{space 3}0.259{col 61}{space 4}-.0135029{col 74}{space 3} .0036397
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1400799{col 33}{space 2} .0148663{col 44}{space 1}    9.42{col 53}{space 3}0.000{col 61}{space 4} .1109424{col 74}{space 3} .1692173
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4317198{col 33}{space 2} .0358944{col 44}{space 1}   12.03{col 53}{space 3}0.000{col 61}{space 4}  .361368{col 74}{space 3} .5020716
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_stimulus_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_stimulus_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, stimulus_approval_iv_with_controls) append
{txt}{p 0 7 2}
(note: variable
var was 
str27, now str29 to accommodate using data's values)
{p_end}
{p 0 7 2}
(note: variable
label was 
str34, now str36 to accommodate using data's values)
{p_end}
file saved_regression_results_for_figure7.dta saved

{com}. 
. ********************************************************
. *USING VOTE CHOICE
. *******************************************************
. *need to drop incumbents who didn't run or lost in primary
. use "CCES_soto_kagan_long", clear
{txt}(Written by R)

{com}. keep if nominee=="kagan"
{txt}(27,978 observations deleted)

{com}. *keep only respondents with senate incumbents
. keep if R_had_incumbent10_elec==1
{txt}(66,230 observations deleted)

{com}. drop if inlist(sen_cces_name, "Christopher Dodd", "George LeMieux" , "Roland Burris" , "Evan Bayh", "Samuel Brownback")
{txt}(9,654 observations deleted)

{com}. drop if inlist(sen_cces_name,  "Jim Bunning" , "Christopher 'Kit' Bond" , "Judd Gregg" , "Byron Dorgan" , "George Voinovich"  , "Arlen Specter" , "Robert Bennett")
{txt}(7,938 observations deleted)

{com}. 
. *ACA
. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. eststo aca_sen_vote_4: ivregress 2sls  R_vote_inc  `controls'  /// 
>         ( sen_perc_aca_agreement sen_perc_party_agreement = sen_actual_aca_agreement sen_actual_party_agreement), cluster(case_id_new)  
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,581
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   8282.58
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7583
{txt}{col 51}Root MSE{col 67}=    {res}  .2435

{txt}{ralign 85:(Std. Err. adjusted for {res:1,416} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_aca_agre~t {c |}{col 21}{res}{space 2} .1902414{col 33}{space 2} .0367997{col 44}{space 1}    5.17{col 53}{space 3}0.000{col 61}{space 4} .1181153{col 74}{space 3} .2623674
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .3166829{col 33}{space 2} .0335103{col 44}{space 1}    9.45{col 53}{space 3}0.000{col 61}{space 4}  .251004{col 74}{space 3} .3823619
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0652957{col 33}{space 2} .0919103{col 44}{space 1}   -0.71{col 53}{space 3}0.477{col 61}{space 4}-.2454366{col 74}{space 3} .1148451
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0358314{col 33}{space 2} .0918096{col 44}{space 1}   -0.39{col 53}{space 3}0.696{col 61}{space 4}-.2157748{col 74}{space 3}  .144112
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0477851{col 33}{space 2} .0922185{col 44}{space 1}   -0.52{col 53}{space 3}0.604{col 61}{space 4}  -.22853{col 74}{space 3} .1329598
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0036906{col 33}{space 2} .0135421{col 44}{space 1}    0.27{col 53}{space 3}0.785{col 61}{space 4}-.0228513{col 74}{space 3} .0302326
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0028419{col 33}{space 2} .0265022{col 44}{space 1}    0.11{col 53}{space 3}0.915{col 61}{space 4}-.0491015{col 74}{space 3} .0547852
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0276383{col 33}{space 2}  .040476{col 44}{space 1}    0.68{col 53}{space 3}0.495{col 61}{space 4}-.0516932{col 74}{space 3} .1069698
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0283043{col 33}{space 2} .0451624{col 44}{space 1}   -0.63{col 53}{space 3}0.531{col 61}{space 4}-.1168211{col 74}{space 3} .0602124
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0012958{col 33}{space 2}  .042175{col 44}{space 1}    0.03{col 53}{space 3}0.975{col 61}{space 4}-.0813657{col 74}{space 3} .0839574
{txt}{space 17}4  {c |}{col 21}{res}{space 2} -.025885{col 33}{space 2} .0429528{col 44}{space 1}   -0.60{col 53}{space 3}0.547{col 61}{space 4}-.1100709{col 74}{space 3}  .058301
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1193576{col 33}{space 2} .0432352{col 44}{space 1}    2.76{col 53}{space 3}0.006{col 61}{space 4} .0346181{col 74}{space 3}  .204097
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .1216005{col 33}{space 2} .0437748{col 44}{space 1}    2.78{col 53}{space 3}0.005{col 61}{space 4} .0358035{col 74}{space 3} .2073974
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0033017{col 33}{space 2} .0134237{col 44}{space 1}   -0.25{col 53}{space 3}0.806{col 61}{space 4}-.0296116{col 74}{space 3} .0230083
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0663394{col 33}{space 2} .0288673{col 44}{space 1}    2.30{col 53}{space 3}0.022{col 61}{space 4} .0097606{col 74}{space 3} .1229183
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4203388{col 33}{space 2} .1075929{col 44}{space 1}    3.91{col 53}{space 3}0.000{col 61}{space 4} .2094606{col 74}{space 3} .6312169
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_aca_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_aca_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, aca_vote_choice_iv_with_controls) append 
{txt}{p 0 7 2}
(note: variable
var was 
str25, now str29 to accommodate using data's values)
{p_end}
{p 0 7 2}
(note: variable
label was 
str32, now str36 to accommodate using data's values)
{p_end}
file saved_regression_results_for_figure7.dta saved

{com}. 
. *DODD-FRANK
. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}.         eststo doddfrank_sen_vote_4: ivregress 2sls  R_vote_inc /// 
>         `controls' ( sen_perc_doddfrank_agreement sen_perc_party_agreement = sen_actual_doddfrank_agreement sen_actual_party_agreement), cluster(case_id_new)   
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,575
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   7243.91
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7211
{txt}{col 51}Root MSE{col 67}=    {res} .26134

{txt}{ralign 85:(Std. Err. adjusted for {res:1,410} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_doddfran~t {c |}{col 21}{res}{space 2} .0374206{col 33}{space 2} .0226602{col 44}{space 1}    1.65{col 53}{space 3}0.099{col 61}{space 4}-.0069926{col 74}{space 3} .0818338
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2}  .437105{col 33}{space 2} .0214857{col 44}{space 1}   20.34{col 53}{space 3}0.000{col 61}{space 4} .3949939{col 74}{space 3} .4792161
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0981966{col 33}{space 2}  .102103{col 44}{space 1}   -0.96{col 53}{space 3}0.336{col 61}{space 4}-.2983149{col 74}{space 3} .1019217
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0623041{col 33}{space 2} .1018799{col 44}{space 1}   -0.61{col 53}{space 3}0.541{col 61}{space 4} -.261985{col 74}{space 3} .1373769
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0848919{col 33}{space 2} .1025393{col 44}{space 1}   -0.83{col 53}{space 3}0.408{col 61}{space 4}-.2858652{col 74}{space 3} .1160815
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0070619{col 33}{space 2} .0146115{col 44}{space 1}    0.48{col 53}{space 3}0.629{col 61}{space 4}-.0215761{col 74}{space 3}    .0357
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} -.001179{col 33}{space 2}    .0276{col 44}{space 1}   -0.04{col 53}{space 3}0.966{col 61}{space 4}-.0552739{col 74}{space 3}  .052916
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0017722{col 33}{space 2} .0471772{col 44}{space 1}   -0.04{col 53}{space 3}0.970{col 61}{space 4}-.0942377{col 74}{space 3} .0906934
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0301356{col 33}{space 2} .0478523{col 44}{space 1}   -0.63{col 53}{space 3}0.529{col 61}{space 4}-.1239244{col 74}{space 3} .0636531
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0109438{col 33}{space 2} .0448269{col 44}{space 1}    0.24{col 53}{space 3}0.807{col 61}{space 4}-.0769154{col 74}{space 3} .0988031
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0183888{col 33}{space 2} .0451937{col 44}{space 1}   -0.41{col 53}{space 3}0.684{col 61}{space 4}-.1069668{col 74}{space 3} .0701892
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2}  .116131{col 33}{space 2} .0470819{col 44}{space 1}    2.47{col 53}{space 3}0.014{col 61}{space 4} .0238522{col 74}{space 3} .2084099
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .1217689{col 33}{space 2} .0479307{col 44}{space 1}    2.54{col 53}{space 3}0.011{col 61}{space 4} .0278264{col 74}{space 3} .2157113
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0079198{col 33}{space 2} .0145373{col 44}{space 1}    0.54{col 53}{space 3}0.586{col 61}{space 4}-.0205728{col 74}{space 3} .0364123
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .1125326{col 33}{space 2}  .030855{col 44}{space 1}    3.65{col 53}{space 3}0.000{col 61}{space 4}  .052058{col 74}{space 3} .1730073
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4206104{col 33}{space 2} .1184782{col 44}{space 1}    3.55{col 53}{space 3}0.000{col 61}{space 4} .1883975{col 74}{space 3} .6528234
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_doddfrank_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_doddfrank_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, doddfrank_vote_choice_iv_with_controls) append   
{txt}{p 0 7 2}
(note: variable
var was 
str28, now str29 to accommodate using data's values)
{p_end}
file saved_regression_results_for_figure7.dta saved

{com}. 
. *DON’T ASK, DON’T TELL
. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. eststo enddontask_sen_vote_4: ivregress 2sls  R_vote_inc  `controls' /// 
>         ( sen_perc_enddontask_agreement sen_perc_party_agreement = sen_actual_enddontask_agreement sen_actual_party_agreement), cluster(case_id_new)    
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,560
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   6160.29
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7240
{txt}{col 51}Root MSE{col 67}=    {res} .26009

{txt}{ralign 85:(Std. Err. adjusted for {res:1,399} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_enddonta~t {c |}{col 21}{res}{space 2}   .10583{col 33}{space 2} .0359319{col 44}{space 1}    2.95{col 53}{space 3}0.003{col 61}{space 4} .0354049{col 74}{space 3} .1762552
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .4205671{col 33}{space 2} .0200839{col 44}{space 1}   20.94{col 53}{space 3}0.000{col 61}{space 4} .3812034{col 74}{space 3} .4599308
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.1057464{col 33}{space 2} .0979771{col 44}{space 1}   -1.08{col 53}{space 3}0.280{col 61}{space 4}-.2977781{col 74}{space 3} .0862853
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0738775{col 33}{space 2} .0978387{col 44}{space 1}   -0.76{col 53}{space 3}0.450{col 61}{space 4}-.2656379{col 74}{space 3} .1178829
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0866532{col 33}{space 2} .0986089{col 44}{space 1}   -0.88{col 53}{space 3}0.380{col 61}{space 4}-.2799231{col 74}{space 3} .1066168
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0083956{col 33}{space 2} .0145005{col 44}{space 1}    0.58{col 53}{space 3}0.563{col 61}{space 4}-.0200248{col 74}{space 3} .0368161
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2} .0040844{col 33}{space 2} .0273533{col 44}{space 1}    0.15{col 53}{space 3}0.881{col 61}{space 4}-.0495271{col 74}{space 3}  .057696
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0159289{col 33}{space 2} .0469639{col 44}{space 1}    0.34{col 53}{space 3}0.734{col 61}{space 4}-.0761187{col 74}{space 3} .1079764
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0387665{col 33}{space 2} .0478546{col 44}{space 1}   -0.81{col 53}{space 3}0.418{col 61}{space 4}-.1325598{col 74}{space 3} .0550268
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0024563{col 33}{space 2} .0450819{col 44}{space 1}    0.05{col 53}{space 3}0.957{col 61}{space 4}-.0859026{col 74}{space 3} .0908152
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0288937{col 33}{space 2}  .045329{col 44}{space 1}   -0.64{col 53}{space 3}0.524{col 61}{space 4}-.1177369{col 74}{space 3} .0599496
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .1076079{col 33}{space 2} .0465816{col 44}{space 1}    2.31{col 53}{space 3}0.021{col 61}{space 4} .0163097{col 74}{space 3} .1989061
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .1092332{col 33}{space 2} .0470373{col 44}{space 1}    2.32{col 53}{space 3}0.020{col 61}{space 4} .0170417{col 74}{space 3} .2014247
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2} .0093756{col 33}{space 2} .0146852{col 44}{space 1}    0.64{col 53}{space 3}0.523{col 61}{space 4}-.0194068{col 74}{space 3} .0381581
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2}  .093288{col 33}{space 2} .0310606{col 44}{space 1}    3.00{col 53}{space 3}0.003{col 61}{space 4} .0324104{col 74}{space 3} .1541657
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4521968{col 33}{space 2} .1148137{col 44}{space 1}    3.94{col 53}{space 3}0.000{col 61}{space 4}  .227166{col 74}{space 3} .6772276
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_enddontask_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_enddontask_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, dadt_vote_choice_iv_with_controls) append        
{txt}{p 0 7 2}
(note: variable
label was 
str33, now str38 to accommodate using data's values)
{p_end}
file saved_regression_results_for_figure7.dta saved

{com}.  
.  *STIMULUS [pools both 2009 and 2010]
. local controls i.educ  female  i.race_wbh  i.age_cat  dem_lean gop_lean engage_factor sen_actual_ideo_agreement
{txt}
{com}. eststo stimulus_sen_vote_4: ivregress 2sls  R_vote_inc /// 
>         `controls' ( sen_perc_stimulus_agreement sen_perc_party_agreement = sen_actual_stimulus_agreement sen_actual_party_agreement), cluster(case_id_new)
{res}
{txt}{col 1}Instrumental variables (2SLS) regression{col 51}Number of obs{col 67}= {res}     1,572
{txt}{col 1}{col 51}Wald chi2({res}15{txt}){col 67}= {res}   7729.34
{txt}{col 1}{col 51}Prob > chi2{col 67}= {res}    0.0000
{txt}{col 1}{col 51}R-squared{col 67}= {res}    0.7542
{txt}{col 51}Root MSE{col 67}=    {res}  .2454

{txt}{ralign 85:(Std. Err. adjusted for {res:1,407} clusters in case_id_new)}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}         R_vote_inc{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      z{col 53}   P>|z|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
sen_perc_stimulus~t {c |}{col 21}{res}{space 2}  .193905{col 33}{space 2} .0318892{col 44}{space 1}    6.08{col 53}{space 3}0.000{col 61}{space 4} .1314033{col 74}{space 3} .2564067
{txt}sen_perc_party_ag~t {c |}{col 21}{res}{space 2} .3381702{col 33}{space 2} .0276516{col 44}{space 1}   12.23{col 53}{space 3}0.000{col 61}{space 4}  .283974{col 74}{space 3} .3923664
{txt}{space 19} {c |}
{space 15}educ {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0399219{col 33}{space 2} .0988132{col 44}{space 1}   -0.40{col 53}{space 3}0.686{col 61}{space 4}-.2335921{col 74}{space 3} .1537484
{txt}{space 17}3  {c |}{col 21}{res}{space 2}-.0019928{col 33}{space 2} .0988518{col 44}{space 1}   -0.02{col 53}{space 3}0.984{col 61}{space 4}-.1957388{col 74}{space 3} .1917531
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0148111{col 33}{space 2} .0992324{col 44}{space 1}   -0.15{col 53}{space 3}0.881{col 61}{space 4}-.2093031{col 74}{space 3} .1796809
{txt}{space 19} {c |}
{space 13}female {c |}{col 21}{res}{space 2} .0034718{col 33}{space 2} .0132937{col 44}{space 1}    0.26{col 53}{space 3}0.794{col 61}{space 4}-.0225834{col 74}{space 3}  .029527
{txt}{space 19} {c |}
{space 11}race_wbh {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0077068{col 33}{space 2} .0255369{col 44}{space 1}   -0.30{col 53}{space 3}0.763{col 61}{space 4}-.0577582{col 74}{space 3} .0423445
{txt}{space 17}3  {c |}{col 21}{res}{space 2} .0223917{col 33}{space 2} .0419724{col 44}{space 1}    0.53{col 53}{space 3}0.594{col 61}{space 4}-.0598728{col 74}{space 3} .1046561
{txt}{space 19} {c |}
{space 12}age_cat {c |}
{space 17}2  {c |}{col 21}{res}{space 2}-.0100048{col 33}{space 2} .0491316{col 44}{space 1}   -0.20{col 53}{space 3}0.839{col 61}{space 4}-.1063009{col 74}{space 3} .0862913
{txt}{space 17}3  {c |}{col 21}{res}{space 2}  .008073{col 33}{space 2} .0467832{col 44}{space 1}    0.17{col 53}{space 3}0.863{col 61}{space 4}-.0836204{col 74}{space 3} .0997664
{txt}{space 17}4  {c |}{col 21}{res}{space 2}-.0069268{col 33}{space 2} .0472068{col 44}{space 1}   -0.15{col 53}{space 3}0.883{col 61}{space 4}-.0994504{col 74}{space 3} .0855968
{txt}{space 19} {c |}
{space 11}dem_lean {c |}{col 21}{res}{space 2} .0876836{col 33}{space 2} .0382421{col 44}{space 1}    2.29{col 53}{space 3}0.022{col 61}{space 4} .0127304{col 74}{space 3} .1626367
{txt}{space 11}gop_lean {c |}{col 21}{res}{space 2} .0968068{col 33}{space 2} .0385854{col 44}{space 1}    2.51{col 53}{space 3}0.012{col 61}{space 4} .0211809{col 74}{space 3} .1724328
{txt}{space 6}engage_factor {c |}{col 21}{res}{space 2}-.0083387{col 33}{space 2} .0135811{col 44}{space 1}   -0.61{col 53}{space 3}0.539{col 61}{space 4}-.0349573{col 74}{space 3} .0182798
{txt}sen_actual_ideo_a~t {c |}{col 21}{res}{space 2} .0324464{col 33}{space 2} .0275978{col 44}{space 1}    1.18{col 53}{space 3}0.240{col 61}{space 4}-.0216442{col 74}{space 3}  .086537
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .4265082{col 33}{space 2} .1124124{col 44}{space 1}    3.79{col 53}{space 3}0.000{col 61}{space 4}  .206184{col 74}{space 3} .6468324
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 3}Instrumented:{space 2}sen_perc_stimulus_agreement sen_perc_party_agreement{p_end}
{p 0 15 3}Instruments:{space 3}2.educ 3.educ 4.educ female 2.race_wbh 3.race_wbh 2.age_cat 3.age_cat 4.age_cat dem_lean gop_lean engage_factor sen_actual_ideo_agreement sen_actual_stimulus_agreement sen_actual_party_agreement{p_end}

{com}. regsave using "saved_regression_results_for_figure7.dta", tstat pval ci autoid addlabel(label, stimulus_vote_choice_iv_with_controls) append
{txt}{p 0 7 2}
(note: variable
var was 
str27, now str29 to accommodate using data's values)
{p_end}
{p 0 7 2}
(note: variable
label was 
str37, now str38 to accommodate using data's values)
{p_end}
file saved_regression_results_for_figure7.dta saved

{com}. 
. *****OUTPUT FOR TABLE A-4       
. *Approval       
. esttab aca_sen_approval_4 CHIP_sen_approval_4 doddfrank_sen_approval_4 enddontask_sen_approval_4 ledbetter_sen_approval_4 stimulus_sen_approval_4 /// 
>         using "table_A4_approval.tex", /// 
>         keep(*agreement*) ///
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Approval - Other Roll Calls\label{c -(}foo{c )-})   
{res}{txt}(output written to {browse  `"table_A4_approval.tex"'})

{com}. *Vote choice
. esttab aca_sen_vote_4 doddfrank_sen_vote_4 enddontask_sen_vote_4 stimulus_sen_vote_4 using "table_A4_vote_choice.tex", /// 
>         keep(*agreement*) ///
>         replace cells("b(star fmt(2))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Vote choice - Other Roll Calls\label{c -(}foo{c )-})        
{res}{txt}(output written to {browse  `"table_A4_vote_choice.tex"'})

{com}. 
. **********************************
. *Table A-2 Full regression results for Thomas
. esttab thomas_ols_approval_2 thomas_iv_approval_2 thomas_rf_approval_2 thomas_ols_vc_2 thomas_iv_vc_2 thomas_rf_vc_2   /// 
>         using "table_A2.tex",   replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Full regression results for Thomas.\label{c -(}foo{c )-})   
{res}{txt}(output written to {browse  `"table_A2.tex"'})

{com}. **********************************
. *Table A-3 Full regression results for Sotomayor and Kagan
. esttab sk_ols_approval_2 sk_iv_approval_2 sk_rf_approval_2 sk_ols_vc_2 k_iv_vc_2 sk_rf_vc_2   /// 
>         using "table_A3.tex",   replace cells("b(star fmt(3))" "se(par)") stats(N r2)  style(tex)   ///
>         title(Full regression results for Sotomayor and Kagan\label{c -(}foo{c )-})       
{res}{txt}(output written to {browse  `"table_A3.tex"'})

{com}. 
. 
.         
. 
. 
. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/jkastell/Dropbox/Politics of Supreme Court Nominations/Chapter_Understanding_Yeas_and_Nays/PRSM_final_submission_and_replication_files/bass_cameron_kastellec_accountability_stata_log_file.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}23 Nov 2021, 09:27:44
{txt}{.-}
{smcl}
{txt}{sf}{ul off}